![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
笔记
saltedfiiish
这个作者很懒,什么都没留下…
展开
-
python中dict的value为list时更新
for i in list1: dict.update({i:[1, 0, 0, 0, 0, 0, 0, 0, 0]}) print(i,dict[i])结果: [1, 0, 0, 0, 0, 0, 0, 0, 0] [1, 0, 0, 0, 0, 0, 0, 0, 0] [1, 0, 0, 0, 0, 0, 0, 0, 0] [1, 0, 0, 0, 0, 0, 0, 0, 0] [1, 0, 0, 0, 0, 0, 0, 0, 0]update里面不能用=,得用{}原创 2021-11-23 00:45:12 · 1241 阅读 · 0 评论 -
解决fake_useragent报错
#python代码from fake_useragent import UserAgentua = UserAgent(use_cache_server=False)print(UserAgent().chrome)headers = {'User-Agent': ua.random}然后找temp文件夹import tempfileprint(tempfile.gettempdir())在文件夹里里面新建fake_useragent_0.1.11.json{ "randomize原创 2021-10-22 00:17:09 · 899 阅读 · 0 评论 -
zenmap崩溃报错
扫描后提示崩溃报错原因:系统用户为中文名解决办法:换成administrator登陆后使用再也不用中文命名了qaq原创 2020-12-03 12:12:52 · 1517 阅读 · 2 评论