随笔分类 -  python

上一页 1 ··· 5 6 7 8 9 10 11 12 下一页
摘要:p 阅读全文
posted @ 2018-01-12 14:06 papering 阅读(135) 评论(0) 推荐(0)
摘要:Python extensions for Windows pywin32 214 Python extensions for Windows Maintainer: Mark Hammond Home Page: http://sf.net/projects/pywin32 Download UR 阅读全文
posted @ 2018-01-11 18:10 papering 阅读(1266) 评论(0) 推荐(0)
摘要:https://www.quora.com/What-are-some-advantages-of-using-Node-js-over-a-Flask-API Flask is a Python web microframework. It needs to be run behind a WSG 阅读全文
posted @ 2018-01-02 21:55 papering 阅读(205) 评论(0) 推荐(0)
摘要:https://stackoverflow.com/questions/11178426/how-can-i-pass-data-from-flask-to-javascript-in-a-template 阅读全文
posted @ 2018-01-02 21:39 papering 阅读(137) 评论(0) 推荐(0)
摘要:8.4 创建大量对象时节省内存方法 — python3-cookbook 3.0.0 文档 https://python3-cookbook.readthedocs.io/zh_CN/latest/c08/p04_save_memory_when_create_large_number_instan 阅读全文
posted @ 2017-12-24 21:01 papering 阅读(250) 评论(0) 推荐(0)
摘要:1、获取hostname 相同代码 不同宿主机 日志名 互异 且 可识别宿主机 分布式爬虫 https://docs.python.org/3.6/library/socket.html#socket.SOCK_RAW socket.gethostbyname(socket.gethostname( 阅读全文
posted @ 2017-12-21 13:13 papering 阅读(745) 评论(0) 推荐(0)
摘要:from selenium import webdriverfrom selenium.webdriver.chrome.options import Options# from selenium.webdriver.firefox.options import Optionsimport timefrom time import sleepimport mathimport randomim... 阅读全文
posted @ 2017-12-19 23:43 papering 阅读(309) 评论(0) 推荐(0)
摘要:python 相对其他语言,在业务数据运算/分析方面,高效的编码速度 阅读全文
posted @ 2017-12-19 11:05 papering 阅读(138) 评论(0) 推荐(0)
摘要:Using Python with TurboGears TurboGears is a Python web framework based on the ObjectDispatch paradigm, it is meant to make possible to write both sma 阅读全文
posted @ 2017-12-14 22:09 papering 阅读(174) 评论(0) 推荐(0)
摘要:https://docs.djangoproject.com/en/1.10/ref/settings/#std:setting-ALLOWED_HOSTS https://stackoverflow.com/questions/24857158/commanderror-you-must-set- 阅读全文
posted @ 2017-12-13 13:01 papering 阅读(799) 评论(0) 推荐(0)
摘要:#zlib zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib -lz Modules/Setup.dist https://askubuntu.com/questions/661039/trouble-with-zip-support-in- 阅读全文
posted @ 2017-12-11 21:08 papering 阅读(757) 评论(0) 推荐(0)
摘要:s = '%s%s%s%s%s%s%s%s' % ( time.strftime('%Y%m%d %H:%M:%S', time.localtime(time.time())), ' os.getppid() ', os.getppid(), ' os.getpid() ', os.getpid() 阅读全文
posted @ 2017-12-11 14:41 papering 阅读(269) 评论(0) 推荐(0)
摘要:Python 中的字节与字节数组 - Python - 伯乐在线 http://python.jobbole.com/84839/ 阅读全文
posted @ 2017-12-07 19:19 papering 阅读(543) 评论(0) 推荐(0)
摘要:import osfor i in range(1, 10): if i % 3 == 0: print(i) s = 'python %s' % (__file__) os.system(s) os._exit(123)ps -aux | grep python | grep -v grep |cut -c 9-15 | xargs k... 阅读全文
posted @ 2017-12-05 19:34 papering 阅读(504) 评论(0) 推荐(0)
摘要:class myBook(): def __init__(self, book): self.book = book def readbook(self): print(self.book, '--GOOD')d = eval("myBook('Java Book')")if hasattr(d, 阅读全文
posted @ 2017-12-05 15:23 papering 阅读(161) 评论(0) 推荐(0)
摘要:https://docs.python.org/3.6/library/queue.html https://github.com/python/cpython/blob/3.6/Lib/queue.py The queue module implements multi-producer, mul 阅读全文
posted @ 2017-12-04 23:18 papering 阅读(259) 评论(0) 推荐(0)
摘要:SimpleHTTPServer python -m SimpleHTTPServer 8989 阅读全文
posted @ 2017-12-04 02:18 papering 阅读(160) 评论(0) 推荐(0)
摘要:python 创建使用虚拟环境python -m venv ./venvsudo apt install python3-virtualenvsudo apt install python3.12-venvvirtualenv venvsource venv/bin/activate https:/ 阅读全文
posted @ 2017-12-04 00:31 papering 阅读(224) 评论(0) 推荐(0)
摘要:Difference between exit() and sys.exit() in Python - Stack Overflow https://stackoverflow.com/questions/6501121/difference-between-exit-and-sys-exit-i 阅读全文
posted @ 2017-12-02 16:50 papering 阅读(368) 评论(0) 推荐(0)

上一页 1 ··· 5 6 7 8 9 10 11 12 下一页