随笔分类 - python
摘要:Python36\site-packages\pymysql\connections.py
阅读全文
摘要:多进程 Not Found: /api/xxxxxxx [pid: 5661|app: 0|req: 5/85] 192.68.17.13 () {32 vars in 454 bytes} [Thu Jul 18 18:09:27 2024] GET /api/xxxxxxx => generat
阅读全文
摘要:豆瓣一年 阿北 03-06-2006 豆瓣blog » Blog Archive » 豆瓣一年 https://blog.douban.com/douban/2006/03/06/61/
阅读全文
摘要:https://github.com/jhao104/proxy_pool/blob/master/doc/introduce.md 3、代码模块 Python中高层次的数据结构,动态类型和动态绑定,使得它非常适合于快速应用开发,也适合于作为胶水语言连接已有的软件部件。用Python来搞这个代理IP
阅读全文
摘要:json.loads(jsonStr, encoding='utf-8')import ast ast.literal_eval(jsonStr)
阅读全文
摘要:ii.lstrip(' ')[0:2]=='//' ii.lstrip(' ').index('//')==0
阅读全文
摘要:import globimport oscwd = os.getcwd()sep = os.septarget = cwd + sep + 'pages' + sep + '*' + sep + '*'filelist = glob.glob(target)pageNameSet = set([i.split('\\')[1] for i in glob.glob('./pages/*/*')...
阅读全文
摘要:jsUrl = 'http://www.heze.cn/qiye/index.php?a=userinfo&username={}'.format(bizQiyeId)r = requests.get(jsUrl)r.encoding = 'utf-8'
阅读全文
摘要:Python代码分析工具:PyChecker、Pylint - CSDN博客 https://blog.csdn.net/permike/article/details/51026156
阅读全文
摘要:7.1. struct — Interpret bytes as packed binary data — Python 3.6.5 documentation https://docs.python.org/3/library/struct.html ource code: Lib/struct.
阅读全文
摘要:https://github.com/PyMySQL/PyMySQL/blob/master/pymysql/__init__.py 建立连接 https://github.com/PyMySQL/PyMySQL/blob/master/pymysql/connections.py https://
阅读全文
摘要:pid_ = rds.connection_pool.pidimport subprocess#handle = subprocess.Popen("", shell=False)subprocess.Popen("taskkill /F /T /PID {}".format(pid_), shell=True)print('go-----------')
阅读全文
摘要:redis.connection — redis-py 2.10.5 documentation http://redis-py.readthedocs.io/en/latest/_modules/redis/connection.html#ConnectionPool 实例化后 应关闭所有连接,或
阅读全文
摘要:d = {'a': [1, 2], 'b': [1]}# --->d={'b':[1],'a':[1,2]} feature_d_ = {} for feature in feature_complete_l: feature_d_[feature] = feature_d[feature] del feature_d feature_d ...
阅读全文
摘要:11.10. shutil — High-level file operations — Python 3.6.5 documentation https://docs.python.org/3/library/shutil.html
阅读全文
摘要:Glossary — Python 3.6.5 documentation https://docs.python.org/3/glossary.html?highlight=equal hashable An object is hashable if it has a hash value wh
阅读全文
摘要:feature_reduce_l = [i if re.search('\d', i) is None else i[0:re.search('\d', i).endpos - 1] for i in feature_l] # set 破坏了顺序 print(feature_reduce_l) print(list(set(feature_reduce_l))) featur...
阅读全文
摘要:TypeError unhashable type:'list' Get unique values from a list in python - Stack Overflow https://stackoverflow.com/questions/12897374/get-unique-valu
阅读全文

浙公网安备 33010602011771号