会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
首页
新随笔
订阅
管理
上一页
1
···
94
95
96
97
98
99
100
101
102
···
341
下一页
2022年1月23日
Python 全局变量 global
摘要: Python 全局变量 局部变量就是定义在一个函数体内部的变量全局变量是定义在外面的变量 a = 1 # 全局变量是定义在函数、类外面的变量 def f(): b = 2 # 局部变量 print(a) # 全局变量 引用全局变量 a = 1 # 全局变量a 是定义在函数、类外面的变量 print(
阅读全文
posted @ 2022-01-23 09:33 emanlee
阅读(4618)
评论(0)
推荐(0)
2022年1月21日
Python FTP 下载文件
摘要: ### ftp登陆连接 ### from ftplib import FTP #加载ftp模块 ftp=FTP() #设置变量 ftp.set_debuglevel(2) #打开调试级别2,显示详细信息 ftp.connect("myIP", port=21) #连接的ftp sever和端口 ft
阅读全文
posted @ 2022-01-21 19:37 emanlee
阅读(798)
评论(0)
推荐(0)
ImportError: ERROR: recursion is detected during loading of "cv2" binary extensions. Check OpenCV installation.
摘要: 问题: pyinstaller 打包后,运行生成的exe报错 “recursion is detected during loading of “cv2“ binary extensions.” Traceback (most recent call last): File "Sy.py", lin
阅读全文
posted @ 2022-01-21 17:57 emanlee
阅读(7001)
评论(0)
推荐(2)
调整微信(浏览器)的音量
摘要: 音量合成器,混合器,声音大小 微信浏览器 声音大小 QQ 声音 微信声音
阅读全文
posted @ 2022-01-21 17:09 emanlee
阅读(630)
评论(0)
推荐(0)
Python 发送邮件 socket.gaierror: [Errno 11004] getaddrinfo failed
摘要: Traceback (most recent call last): File "D:/soft/test.py", line 140, in <module> main_runnow() File "D:/soft/test.py", line 133, in main_runnow sendma
阅读全文
posted @ 2022-01-21 09:50 emanlee
阅读(1237)
评论(0)
推荐(0)
2022年1月20日
如何保护你的 Python 代码
摘要: REF https://www.cnblogs.com/dhcn/p/11077447.html https://blog.csdn.net/apollo_miracle/article/details/106316090 常见的源码保护手段有如下几种: 发行 .pyc 文件 代码混淆 使用 py2
阅读全文
posted @ 2022-01-20 21:48 emanlee
阅读(681)
评论(0)
推荐(0)
PyInstaller Extractor 解包 Pyinstaller打包的EXE
摘要: 用法 把 pyinstxtractor.py 和 exe文件 放在同个目录下 python pyinstxtractor.py xx.exe 官网 https://sourceforge.net/projects/pyinstallerextractor/ MIGRATED TO GITHUB ht
阅读全文
posted @ 2022-01-20 21:33 emanlee
阅读(794)
评论(0)
推荐(0)
PyCharm 中文汉化(中文界面)
摘要: 1 从 PyCharm 官网下载最新版本的 PyCharm (2021.3)。 PyCharm 2021.3 社区版 链接:https://pan.baidu.com/s/1_cP6qb1GJzi1-VRDHQSEyQ 提取码:1234 2 安装PyCharm (2021.3) 默认安装即可。 3
阅读全文
posted @ 2022-01-20 15:23 emanlee
阅读(1894)
评论(0)
推荐(0)
2022年1月19日
python方法和函数的区别
摘要: from types import MethodType, FunctionType class Foo(object): def __init__(self): self.name = "MyName" def func(self): print(self.name) obj = Foo() pr
阅读全文
posted @ 2022-01-19 22:39 emanlee
阅读(96)
评论(0)
推荐(0)
Python 第三方库资源
摘要: 转自:https://github.com/jobbole/awesome-python-cn 资源列表 环境管理 管理 Python 版本和环境的工具 p:非常简单的交互式 Python 版本管理工具。 pyenv:简单的 Python 版本管理工具。 Vex:可以在虚拟环境中执行命令。 virt
阅读全文
posted @ 2022-01-19 10:44 emanlee
阅读(460)
评论(0)
推荐(0)
上一页
1
···
94
95
96
97
98
99
100
101
102
···
341
下一页