摘要:
import osimport asyncioimport timeasync def fun(i, f1, find_str, count, end_offset): # print(i*end_offset-1) for j in range(count): if i == 0: f1.seek 阅读全文
摘要:
时间戳转换成字符串 time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(time.time()))字符串转换成时间戳 time.mktime(time.strptime('2021-07-27 11:11:11', '%Y-%m-%d %H:%M:%S 阅读全文
摘要:
def is_vaild_date(date): try: if ":" in date: time.strptime(date, "%Y-%m-%d %H:%M:%S") else: time.strptime(date, "%Y-%m-%d") return True except: retur 阅读全文
摘要:
operate_ip = request.headers.get('X-Forwarded-For')if operate_ip: operate_ip = operate_ip.split(',')[0]if not operate_ip: try: operate_ip = request.re 阅读全文