02 2018 档案

摘要:转到声明-->ctrl+B 转到引用-->ctrl+alt+B 返回之前窗口-->F12 运行-->ctrl+shift+F10 转到之前编辑-->ctrl+shift+Backspace 阅读全文
posted @ 2018-02-28 15:07 欧阳平 阅读(280) 评论(0) 推荐(0)
摘要:Could not fetch URL https://pypi.python.org/simple/xxx/: There was a problem confirming the ssl certificate: [SSL: CERTIFICATE_VERIFY_FAILED] certific 阅读全文
posted @ 2018-02-27 22:55 欧阳平 阅读(10032) 评论(0) 推荐(0)
摘要:错误:error in launcher: Unable to create process using '" python多个版本时出现, 解决方法-- 将pip重新安装 python3 -m pip install --upgrade --force-reinstall pip 阅读全文
posted @ 2018-02-26 08:20 欧阳平 阅读(497) 评论(0) 推荐(0)
摘要:动态注册时可以选择将itchat.run()放入另一线程或使用configured_reply()方法处理消息。 两种方法分别是: 阅读全文
posted @ 2018-02-23 10:00 欧阳平 阅读(401) 评论(0) 推荐(0)
摘要:基本语法:pyinstaller options myscript.py常用的可选参数如下:--onefile 将结果打包成一个可执行文件--onedir 将所有结果打包到一个文件夹中,该文件夹包括一个可执行文件和可执行文件执行时需要的依赖文件(默认)--paths=DIR 设置导入路径--dist 阅读全文
posted @ 2018-02-19 18:08 欧阳平 阅读(1140) 评论(0) 推荐(0)
摘要:python实现微信接口(itchat) 安装 sudo pip install itchat sudo pip install itchat 登录 itchat.auto_login() 这种方法将会通过微信扫描二维码登录,但是这种登录的方式确实短时间的登录,并不会保留登录的状态,也就是下次登录时 阅读全文
posted @ 2018-02-19 16:44 欧阳平 阅读(15628) 评论(1) 推荐(1)
摘要:修饰符基础——闭包 什么是闭包呢?标准的概念大家可以看wikipedia上的解释点击打开链接 举个例子: [python] view plain copy def do_add(base): def add(increase): return base + increase return add d 阅读全文
posted @ 2018-02-18 19:08 欧阳平 阅读(188) 评论(0) 推荐(0)
摘要:1. @prototype修饰符的用法 另外一种用法: 2. staticmethod修饰符 被staticmethod修饰符的表示这是一个类的静态方法,可以被类直接调用 阅读全文
posted @ 2018-02-18 18:30 欧阳平 阅读(305) 评论(0) 推荐(0)
摘要:import requestsapiUrl = 'http://www.tuling123.com/openapi/api'data = { 'key' : '8edce3ce905a4c1dbb965e6b35c3834d', # 如果这个Tuling Key不能用,那就换一个 'info' : 阅读全文
posted @ 2018-02-18 14:45 欧阳平 阅读(201) 评论(0) 推荐(0)