Python3
Python
丫丫博客
这个作者很懒,什么都没留下…
展开
-
【pip】问题:win10下pip升级不上
win10下pip无法升级问题:使用提示中的 pip install --upgrade pip 仍报错解决方案:1)下载pip最新版2)解压后再路径下,cmd执行命令 python setup.py install 即可...原创 2020-02-20 16:20:20 · 519 阅读 · 0 评论 -
【Python3】图形界面GUI编程之wxpython布局
python图形界面GUI编程之wxpython布局原创 2017-10-16 19:01:39 · 2464 阅读 · 0 评论 -
【Python3】列表模糊匹配列表
B列表模糊匹配A列表a = ['123','666','355']b = ['2','5']for i in range(len(b)): for j in range(len(a)): if a[j].find(b[i]) == -1: continue print(a[j])执行结果:...原创 2018-12-06 15:08:49 · 13152 阅读 · 0 评论 -
【Python3】使用指定浏览器打开指定个数的指定网页
1、系统自带库 os在这里插入代码片原创 2018-12-26 16:31:15 · 1039 阅读 · 1 评论 -
【Python3】数组排序
1、数组排序a = [3,1,4,6]a.sort()print(a)执行结果: 2、多维数组排a = [['5.1.5.40580', 29], ['5.0.8.14000', 11], ['5.0.8.14999', 59], ['5.1.4.37882', 4]]a.sort(key=lambda x:x[1],reverse=True)print(a)...原创 2018-05-15 19:56:49 · 19438 阅读 · 1 评论 -
【Python3】简介
Python简介原创 2017-06-21 08:59:49 · 586 阅读 · 0 评论 -
【Python3】问题:UnicodeEncodeError和ImportError
python碰到的问题汇总原创 2017-07-04 23:26:57 · 294 阅读 · 0 评论 -
【Python3】requests设置代理
import requestsproxies = {'http': 'http://localhost:8888', 'https': 'http://localhost:8888'}requests.post(url, data=body, headers=myouheader, proxies=proxies, verify=False) #verify是否验证服务器的SSL证书...原创 2018-05-14 19:54:21 · 80867 阅读 · 1 评论 -
【Python3】数组去重统计
1、多维数组去重 数据: [[‘5.1.1.28494’, ‘9a211eb3-ec69-48de-94b5-0b4ac576688c’], [‘5.1.1.28494’, ‘9a211eb3-ec69-48de-94b5-0b4ac576688c’], [‘5.1.1.28494’, ‘9a211eb3-ec69-48de-94b5-0b4ac576688c’]]...原创 2018-05-12 12:50:59 · 4638 阅读 · 2 评论 -
【Python3】pyinstaller将py打包成exe
背景:分享python编写的小脚本时,拷贝代码还缺各种环境,使用Pyinstaller将py可以打包成exe,直接运行即可1、安装pyinstaller运行时所需要的windows拓展pywin322、安装pyinstallerpip install pyinstaller 验证是否成功:pyinstaller -v 3、pyinstaller指令 参数原创 2018-01-25 19:06:25 · 849 阅读 · 1 评论 -
【Python3】图形界面GUI编程之tkinter布局
python图形界面GUI编程之tkinter布局原创 2017-10-13 22:48:07 · 2133 阅读 · 4 评论