摘要: 用requests请求一下网址均可: http://jsonip.com http://httpbin.org/get 阅读全文
posted @ 2024-01-02 17:24 CJTARRR 阅读(67) 评论(0) 推荐(0)
摘要: Python importlib简单使用 查看包/文件是否存在 from importlib import util​spec = util.find_spec("xxx.xxx.xxx") # 填目标包/文件的引用路径if not spec: print("没有找到相关的包/文件") 导入包/文件 阅读全文
posted @ 2024-01-02 17:07 CJTARRR 阅读(111) 评论(0) 推荐(0)
摘要: 安装pysocks pip install pysocks 挂载/卸载代理方法 import socksimport socket​​def up_global_proxy(host: str, port: int, username: str=None, password :str=None): 阅读全文
posted @ 2024-01-02 11:55 CJTARRR 阅读(1271) 评论(0) 推荐(0)