摘要:
"""author:张鑫date:2021/5/31 15:11"""def c_a(name): name = name.encode('unicode_escape').decode('ascii') print(name)if __name__ == '__main__': name = '返 阅读全文
posted @ 2021-10-20 16:46
布都御魂
阅读(126)
评论(0)
推荐(0)
摘要:
# coding:UTF-8import timedef time_turns(time1): if '小時' in time1: time2 = str(int(time.time()) - int(time1.split('小')[0]) * 3600) return time2 if '小时' 阅读全文
posted @ 2021-10-20 16:22
布都御魂
阅读(126)
评论(0)
推荐(0)
摘要:
""" author:张鑫 date:2021/7/30 20:39 """ import time def time_turn(timenum): if 0 < len(timenum) < 11 and timenum.isdigit(): timenum = int(timenum) time 阅读全文
posted @ 2021-10-20 16:21
布都御魂
阅读(203)
评论(0)
推荐(0)
摘要:
"""author:张鑫date:2021/7/23 17:16""""""author:张鑫date:2021/7/20 10:00"""import pymysqlconnect = pymysql.Connect( host='192.168.1.117', port=3306, user=' 阅读全文
posted @ 2021-10-20 16:18
布都御魂
阅读(39)
评论(0)
推荐(0)
摘要:
"""author:张鑫date:2021/8/13 16:37"""import pymysql# 即将插入的数据# url2 = ''connect = pymysql.Connect( host='140.210.4.73', port=3306, user='twipad_cj', pass 阅读全文
posted @ 2021-10-20 16:17
布都御魂
阅读(342)
评论(0)
推荐(0)
摘要:
"""author:张鑫date:2021/5/19 15:38"""# 导入模块import timeimport pymongoimport randomimport reimport pandas as pdimport numpy as np# 连接数据库database = pymongo 阅读全文
posted @ 2021-10-20 16:01
布都御魂
阅读(142)
评论(0)
推荐(0)
摘要:
"""author:张鑫date:2021/6/24 16:31"""# 上取整from math import ceilnum1 = ceil(1.11)print(num1)num2 = ceil(90/20)print(num2)# 下取整num3 = int(1.11)print(num3) 阅读全文
posted @ 2021-10-20 15:59
布都御魂
阅读(51)
评论(0)
推荐(0)
摘要:
"""author:张鑫date:2021/6/24 14:30"""import redef remove_label(content): if '<' in content: pre = re.compile('>(.*?)<') content = content.replace('  阅读全文
posted @ 2021-10-20 15:51
布都御魂
阅读(52)
评论(0)
推荐(0)
摘要:
# coding=gbkimport xlsxwriter as xwimport requestsimport reimport jsonimport timeimport randomfrom fake_useragent import UserAgentimport randomdef get 阅读全文
posted @ 2021-10-20 15:43
布都御魂
阅读(20)
评论(0)
推荐(0)
摘要:
"""author:张鑫date:2021/8/12 10:48"""def today_start(): import time import datetime today = datetime.date.today() today_time = int(time.mktime(today.tim 阅读全文
posted @ 2021-10-20 15:40
布都御魂
阅读(21)
评论(0)
推荐(0)

浙公网安备 33010602011771号