上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 41 下一页
摘要: import json from os import makedirs from os.path import exists RESULTS_DIR = 'results' exists(RESULTS_DIR) or makedirs(RESULTS_DIR) def save_data(data 阅读全文
posted @ 2021-08-04 17:08 宝山方圆 阅读(833) 评论(0) 推荐(0)
摘要: import requests Cookie = 'xxxxx' UserAgent = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515. 阅读全文
posted @ 2021-08-03 07:56 宝山方圆 阅读(565) 评论(3) 推荐(0)
摘要: 供参考 from multiprocessing import Pool import time def function(index): print(f'Start process: {index}') time.sleep(3) print(f'End process {index}') if 阅读全文
posted @ 2021-08-01 22:22 宝山方圆 阅读(63) 评论(0) 推荐(0)
摘要: 卸载xshell 删除xshell注册表 打开运行框(快捷键WIN+R),输入regedit.exe 删除计算机\HKEY_CURRENT_USER\Software\Netscape目录 重新安装xshell 【转自】https://www.cnblogs.com/daryl-blog/p/120 阅读全文
posted @ 2021-07-31 15:45 宝山方圆 阅读(1768) 评论(0) 推荐(0)
摘要: 古代君王大事记 一、三皇五帝 1.五帝:黄帝、颛顼、帝喾、尧、舜 2.黄帝——涿鹿之战、人文初祖 二、夏 1.禹——三过家门而不入、建夏 2.启——禹传启、家天下 3.桀——暴政亡国 三、商 1.汤——鸣条之战、建商 2.盘庚——迁都 3.纣——抚梁易柱、酒池肉林、鹿台 四、周 1.周文王——西伯拘 阅读全文
posted @ 2021-04-29 17:55 宝山方圆 阅读(939) 评论(0) 推荐(0)
摘要: 知道前三位,后四位,查找归属地是聊城的手机号,代码简写如下 from phone import Phone prefixPhone = '1xx' middlePhone = '0000' suffixPhone = 'xxxx' for i in range(0, 10000): stri = s 阅读全文
posted @ 2021-04-28 10:27 宝山方圆 阅读(490) 评论(0) 推荐(0)
摘要: Python一次性获取各个业务对接的数据量 根据表名模糊查找或者表明列表 # -*- coding: utf-8 import json import pandas as pd import pymysql import time def main(): dataSum = [] # 数据总量 da 阅读全文
posted @ 2021-03-09 16:26 宝山方圆 阅读(206) 评论(0) 推荐(0)
摘要: single.get("tablelist") 上述获取的是一个列表list 一种比较恶心的办法,将list以字符串的形式拼接在SQL语句中 if "共享平台" in single.get("key"): sql = "select " \ "table_schema, " \ "table_nam 阅读全文
posted @ 2021-03-09 16:11 宝山方圆 阅读(275) 评论(0) 推荐(0)
摘要: """ 用辗转相除法求最大公约数的算法如下: 两个正整数a和b(a>b),它们的最大公约数等于a除以b的余数c和b之间的最大公约数。 比如10和25,25除以10商2余5,那么10和25的最大公约数,等同于10和5的最大公约数。 """ def gongyue(a, b): """ 求最大公约数 : 阅读全文
posted @ 2021-03-04 15:25 宝山方圆 阅读(478) 评论(0) 推荐(0)
摘要: 查询mysql中非系统表的数据表行数 且倒排 select table_schema,table_name,table_rows from information_schema.tables where table_schema != 'information_schema' and table_s 阅读全文
posted @ 2021-01-29 16:14 宝山方圆 阅读(168) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 41 下一页