python脚本设设置代理环境

2024年1月16日11:00:20 发表评论 291 views
  1. export http_proxy="http://127.0.0.1:1081"
  2. export https_proxy="http://127.0.0.1:1081"
    import os
    os.environ["http_proxy"] = "http://127.0.0.1:1081"
    os.environ["https_proxy"] = "http://127.0.0.1:1081"

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: