
Python
红楼一梦Star
这个作者很懒,什么都没留下…
展开
-
Python虚拟环境进入和退出Star.hou
【代码】Python虚拟环境进入和退出Star.hou。原创 2023-03-14 22:57:45 · 232 阅读 · 0 评论 -
Python 网页截图
python网页截图原创 2023-02-20 19:30:51 · 307 阅读 · 0 评论 -
Python 多线程提交函数传递多参数 Star.hou
【代码】Python 多线程提交函数传递多参数 Star.hou。原创 2023-02-16 14:58:26 · 782 阅读 · 0 评论 -
Python MD5加密
import hashlibdef trans_md5(str): m1 = hashlib.md5() m1.update(str.encode("utf-8")) token = m1.hexdigest() return tokenrow_json = {"amount":"186.06"}print(trans_md5(row_json.get('amount')))原创 2022-04-14 11:48:54 · 868 阅读 · 0 评论 -
Python收取163邮箱--Star.hou
代码应该不仅仅可以收取163邮箱,163做了三方软件客户端收取代码验证。最近Python熟练上手,分享下: def connect_163_mail(self, user, passwd, port , host): try: imaplib.Commands["ID"] = ("AUTH") imapclient = imaplib.IMAP4_SSL(port = port, host = host) ima原创 2022-03-24 15:57:35 · 2085 阅读 · 0 评论 -
Python程序打包window exe程序pyinstaller--Star.hou
第一步安装pip 包:pip install pyinstaller安装成功:第二步执行:pyinstaller -F main.py遇到了报错: with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:PermissionError: [Errno 13] Permission denied: 'C:\\Users\\OrderPlus\\AppData\\Local\\pyinstaller\\bincache00_py39_64b原创 2022-02-15 11:38:05 · 615 阅读 · 0 评论 -
Python创建、进入虚拟环境--Star.Hou
创建:python -m venv myvenvnamemyvenvname自己命名进入:myvenvname\Scripts\activate.batvenv\Scripts\activate.bat进入后如图:进入后可用pip install 安装包。这样安装的包和其他项目环境可以隔离使用。原创 2022-01-24 10:23:22 · 689 阅读 · 0 评论 -
Python在win环境下创建多版本---Star.hou
先上图。然后设置环境变量:一切OK go…原创 2022-01-20 21:49:34 · 536 阅读 · 0 评论