123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- """
- __title__ = '测试读取ini文件'
- @Time : 2020/9/26 18:36
- @Author : Kenny-PC
- @Software: PyCharm
- # code is far away from bugs with the god animal protecting
- I love animals. They taste delicious.
- ┏┓ ┏┓
- ┏┛┻━━━┛┻┓
- ┃ ☃ ┃
- ┃ ┳┛ ┗┳ ┃
- ┃ ┻ ┃
- ┗━┓ ┏━┛
- ┃ ┗━━━┓
- ┃ 神兽保佑 ┣┓
- ┃ 永无BUG! ┏┛
- ┗┓┓┏━┳┓┏┛
- ┃┫┫ ┃┫┫
- ┗┻┛ ┗┻┛
- """
- import math
- import time
- from datetime import datetime
- dtime = datetime.strptime('2019-11-14 13:49:32', "%Y-%m-%d %H:%M:%S")
- dd = ((int(time.mktime(dtime.timetuple())) + 8 * 3600) // 86400) * 86400 - 8 * 3600
- print(dtime, int(time.mktime(dtime.timetuple())), type(dtime), dtime.timetuple)
- print(dd, type(dd))
- per_page = 1000
- total_count = 40
- page = 1
- print(math.ceil(40 / int(per_page)))
- print(math.ceil(1000 / int(per_page)))
- parameter = int(page) > math.ceil(total_count / int(per_page))
- print(parameter)
- print(math.ceil(0 / 100))
- print(math.ceil(100 / 100))
- print(math.ceil(101 / 100))
- for i in range(5):
- if 1 != 1:
- items = [0, 1]
- else:
- print('掌中云本次请求数据为空')
- items = []
- continue
- print('123345')
- for item in items:
- print(item)
|