11 lines
201 B
Python
11 lines
201 B
Python
from winproxy import ProxySetting
|
|
|
|
|
|
def close_proxy():
|
|
ps = ProxySetting()
|
|
"""关闭系统代理"""
|
|
ps.enable = False
|
|
ps.registry_write()
|
|
print('代理已经关闭!')
|
|
|
|
close_proxy() |