上一页 1 2 3 4 5 6 ··· 21 下一页
摘要: "." Matches any character except a newline. "^" Matches the start of the string. "$" Matches the end of the string or just before the newline at the e 阅读全文
posted @ 2018-03-06 10:00 欧阳平 阅读(291) 评论(0) 推荐(0) 编辑
摘要: 编辑距离: 1、定义-->两个字符串,其中一个相对于另一个经过增删改操作的最少编辑次数 2、算法过程--> 3、举例-->以“ivan1”和“ivan2“两字符串为例 1、第一行和第一列的值从0开始增长 2、i列值的产生 Matrix[i - 1, j] + 1 ; Matrix[i, j - 1] 阅读全文
posted @ 2018-03-04 10:31 欧阳平 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 转到声明-->ctrl+B 转到引用-->ctrl+alt+B 返回之前窗口-->F12 运行-->ctrl+shift+F10 转到之前编辑-->ctrl+shift+Backspace 阅读全文
posted @ 2018-02-28 15:07 欧阳平 阅读(263) 评论(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 欧阳平 阅读(9975) 评论(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 欧阳平 阅读(485) 评论(0) 推荐(0) 编辑
摘要: 动态注册时可以选择将itchat.run()放入另一线程或使用configured_reply()方法处理消息。 两种方法分别是: 阅读全文
posted @ 2018-02-23 10:00 欧阳平 阅读(375) 评论(0) 推荐(0) 编辑
摘要: 基本语法:pyinstaller options myscript.py常用的可选参数如下:--onefile 将结果打包成一个可执行文件--onedir 将所有结果打包到一个文件夹中,该文件夹包括一个可执行文件和可执行文件执行时需要的依赖文件(默认)--paths=DIR 设置导入路径--dist 阅读全文
posted @ 2018-02-19 18:08 欧阳平 阅读(1111) 评论(0) 推荐(0) 编辑
摘要: python实现微信接口(itchat) 安装 sudo pip install itchat sudo pip install itchat 登录 itchat.auto_login() 这种方法将会通过微信扫描二维码登录,但是这种登录的方式确实短时间的登录,并不会保留登录的状态,也就是下次登录时 阅读全文
posted @ 2018-02-19 16:44 欧阳平 阅读(15488) 评论(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 欧阳平 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 1. @prototype修饰符的用法 另外一种用法: 2. staticmethod修饰符 被staticmethod修饰符的表示这是一个类的静态方法,可以被类直接调用 阅读全文
posted @ 2018-02-18 18:30 欧阳平 阅读(292) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 21 下一页