
python
luminous_you
记录遇到的问题和解决方案,方便大家少走弯路
展开
-
windows下python2和python3同时安装环境配置
python2和python3环境配置1.python版本下载官网地址:https://www.python.org/downloads/windows/扩展知识-msi格式文件:Windows Installer,它不只是安装程序,而且是可扩展的软件管理系统。Windows Installer的用途包括:管理软件的安装、管理软件组件的添加和删除、监视文件的复原以及使用回滚技术维护基本的灾难恢复。另外,Windows Installer还支持从多个源位置安装和运行软件,而且可以由想要安装自定义原创 2021-11-01 20:11:50 · 1253 阅读 · 0 评论 -
Traceback (most recent call last): return self[name] KeyError: ‘registered_pocs‘
Traceback (most recent call last): File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\site-packages\pocsuite3\lib\core\datatype.py", line 18, in __getattr__ return self[name]KeyError: 'registered_pocs'During handling of the above exc.原创 2021-10-18 20:46:31 · 2352 阅读 · 0 评论 -
Python2/3 解决访问Https时不受信任SSL证书问题
import sslssl._create_default_https_context = ssl._create_unverified_context原创 2021-10-18 18:20:28 · 709 阅读 · 0 评论 -
TypeError: can only concatenate str (not “int“) to str,TypeError: write() argument must be str, not
问题一:TypeError: can only concatenate str (not “int”) to str》解决的办法通过str()函数来将其他类型变量转成String。举例for num in range(24,100): testurl = 'https://aaa.com/search?p='+str(num)问题二:TypeError: write() argument must be str, not bytes+需要解决两点1. 需要二进制写入文件,#a追加写入,b二原创 2021-09-16 15:54:49 · 1803 阅读 · 0 评论