摘要:
"""author:张鑫date:2021/8/13 16:37"""import pymysql# 即将插入的数据# url2 = ''connect = pymysql.Connect( host='140.210.4.73', port=3306, user='twipad_cj', pass 阅读全文
摘要:
"""author:张鑫date:2021/5/19 15:38"""# 导入模块import timeimport pymongoimport randomimport reimport pandas as pdimport numpy as np# 连接数据库database = pymongo 阅读全文
摘要:
"""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) 阅读全文
摘要:
"""author:张鑫date:2021/6/24 14:30"""import redef remove_label(content): if '<' in content: pre = re.compile('>(.*?)<') content = content.replace('  阅读全文
摘要:
# coding=gbkimport xlsxwriter as xwimport requestsimport reimport jsonimport timeimport randomfrom fake_useragent import UserAgentimport randomdef get 阅读全文
摘要:
"""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 阅读全文
摘要:
import randomfrom time import sleepfrom selenium import webdriverfrom lxml import etreefrom selenium.webdriver import ActionChainsurl = []# 初始页面地址urls 阅读全文
摘要:
"""author:张鑫date:2021/10/14 17:14"""import paramikoip = "140.210.4.73" # 服务器ipport = 22 # 端口号username = "zs_caoye" # 用户名password = "zs_caoye#@!s" # 密码 阅读全文
摘要:
"""author:张鑫date:2021/10/14 17:14"""import timeimport paramikoimport requestsfrom lxml import etreefrom selenium import webdriverkeyword = 'SandyHsu31 阅读全文