随笔分类 -  Python

摘要:--init--.py 含--init--.py的文件才会被认作是一个包 if --name-- == "--main--" 别人 调用你的模块时if --name-- == "--main--": 这下面的代码都会被忽略! 异常处理 # 普通的 try: 正常的操作 ............... 阅读全文
posted @ 2022-04-27 15:31 默小柒 阅读(24) 评论(0) 推荐(0) 编辑
摘要:Requests ##安装和导入 #安装 pip install requests #导入 import requests 高级GET请求 # 随机获取User-Agent 模块 from fake_useragent import UserAgent # requests模块 import req 阅读全文
posted @ 2022-04-27 14:12 默小柒 阅读(9) 评论(0) 推荐(0) 编辑
摘要:安装virtualenv pip install virtualenv -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com pip install virtualenvwrapper -i http: 阅读全文
posted @ 2022-04-19 11:31 默小柒 阅读(25) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示