随笔分类 -  python

上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 48 下一页
摘要:https://www.runoob.com/python3/python3-date-time.html 阅读全文
posted @ 2019-11-26 15:40 anobscureretreat 阅读(396) 评论(0) 推荐(0)
摘要:import configparser config = configparser.ConfigParser() file = 'config.ini' config.read(file) config.add_section('login') config.set('login','username','1111') config.set('login','password','2222') w 阅读全文
posted @ 2019-11-14 19:41 anobscureretreat 阅读(1193) 评论(0) 推荐(0)
摘要:import paho.mqtt.client as mqtt client = mqtt.Client(client_id, transport='tcp') client.username_pw_set(username, password=passwd) 参考: https://www.cnblogs.com/chenpingzhao/p/11383856.html https:... 阅读全文
posted @ 2019-10-10 17:36 anobscureretreat 阅读(5240) 评论(0) 推荐(0)
摘要:client server 参考: https://blog.csdn.net/sinat_32651363/article/details/87876978 阅读全文
posted @ 2019-10-10 17:01 anobscureretreat 阅读(5571) 评论(0) 推荐(0)
摘要:vi /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py vi /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/requests/models.py 阅读全文
posted @ 2019-10-09 23:15 anobscureretreat 阅读(448) 评论(0) 推荐(0)
摘要:请求 参考: https://www.cnblogs.com/momoyan/p/11027572.html 阅读全文
posted @ 2019-10-08 17:04 anobscureretreat 阅读(269) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/mgsky1/article/details/93412128https://blog.csdn.net/weixin_44449518/article/details/98739210https://bbs.csdn.net/topics/3918179 阅读全文
posted @ 2019-09-26 23:38 anobscureretreat 阅读(206) 评论(0) 推荐(0)
摘要:pip3 install mysqlclient 阅读全文
posted @ 2019-09-25 21:03 anobscureretreat 阅读(1700) 评论(0) 推荐(0)
摘要:场景:mac 下导入的 ‘select’ 包 import select,然后在 主函数 中创建的 epoll 对象 epl = select.epoll(),运行报错如下 python官方文档介绍 答案:仅仅支持Linux2.5.44或更高版本。 参考: https://blog.csdn.net 阅读全文
posted @ 2019-09-24 23:17 anobscureretreat 阅读(1674) 评论(0) 推荐(0)
摘要:下载 库文件 参考: https://stackoverflow.com/questions/53355474/kivent-installation-fatal-error-lnk1181-cant-open-input-file-glew32-lib 阅读全文
posted @ 2019-09-22 20:06 anobscureretreat 阅读(534) 评论(0) 推荐(0)
摘要:#在当前测试类的开始与结束执行。 setup_class teardown_class #在每个测试方法开始与结束执行。 setup teardown #在每个测试方法开始与结束执行,与setup/treadown级别相同 setup_method teardown_method 参考: https://github.com/ftobia/pytest-ordering https://pytes 阅读全文
posted @ 2019-09-19 14:27 anobscureretreat 阅读(208) 评论(0) 推荐(0)
摘要:C:\Users\leahj>C:\Users\leahj\AppData\Local\Programs\Python\Python36\Scripts\pip3 install cv2 Collecting cv2 Could not find a version that satisfies the requirement cv2 (from versions: ) No mat... 阅读全文
posted @ 2019-09-18 16:42 anobscureretreat 阅读(1635) 评论(0) 推荐(0)
摘要:pytesseract.pytesseract.TesseractError: (1, 'Error opening data file /usr/local/share/tessdata/chi_sim.traineddata Please make sure the TESSDATA_PREFI 阅读全文
posted @ 2019-09-18 15:12 anobscureretreat 阅读(6397) 评论(0) 推荐(0)
摘要:安装 tesseractbrew install tesseract 加入环境变量export TESSDATA_PREFIX=/usr/local/Cellar/tesseract/4.1.0/share/tessdata 查看安装位置bogon:verify macname$ brew list 阅读全文
posted @ 2019-09-18 14:59 anobscureretreat 阅读(1193) 评论(0) 推荐(0)
摘要:def getdecrype(l): a=29 length="" while(1): if(l[a]=="x"): break else: length+=l[a] a+=1 hexnum="" for i in length: h... 阅读全文
posted @ 2019-09-18 14:10 anobscureretreat 阅读(686) 评论(0) 推荐(0)
摘要:>>> import platform >>> platform.platform() 'Darwin-17.7.0-x86_64-i386-64bit' >>> platform.system() 'Darwin' >>> import platform >>> platform.system() 'Windows' >>> import platform >>> platform.system 阅读全文
posted @ 2019-09-17 18:17 anobscureretreat 阅读(1640) 评论(0) 推荐(0)
摘要:参考:https://blog.csdn.net/sinat_21302587/article/details/65634124https://blog.csdn.net/qq_39620871/article/details/80732521https://blog.csdn.net/weixin 阅读全文
posted @ 2019-09-16 22:11 anobscureretreat 阅读(2567) 评论(0) 推荐(1)
摘要:str = "www.runoob.com" print(str.upper()) # 把所有字符中的小写字母转换成大写字母 print(str.lower()) # 把所有字符中的大写字母转换成小写字母 print(str.capitalize()) # 把第一个字母转化为大写字母,其余小写 print(str.title()) # 把每个单词的第一个字母转化为大写,其余小写 输出 WWW.RU 阅读全文
posted @ 2019-09-16 22:10 anobscureretreat 阅读(6285) 评论(0) 推荐(0)
摘要:原因 : 模型还未生成出来 , 此时你去检测的生成完毕的模型 , 模型呢 ? 还没生成 . 模型还没生成就引用了为什么不报错 ? 解决办法 : 当前情况不要以为是你的程序有 bug , 而是你的模型还没生成完毕 , OVER ! 阅读全文
posted @ 2019-09-16 22:05 anobscureretreat 阅读(3552) 评论(0) 推荐(0)

上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 48 下一页