推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
123abcdf11345
V2EX  ›  Python

Python 如何获取网络状态并断开网络连接(有线)

  •  1
     
  •   123abcdf11345 · Mar 14, 2020 · 3705 views
    This topic created in 2440 days ago, the information mentioned may be changed or developed.

    rt,想断开机器的有线连接,最好以禁用的方式,在需要时可以重连 大佬们请给一个解决方案,第三方库也可以 谢谢

    5 replies  •  2020-05-19 17:34:20 +08:00
    kilasuelika
    kilasuelika
    Mar 14, 2020 via Android
    1
    用 python 运行 dos 命令可以。
    查一下就知道需要哪些 dos 命令禁用网卡。
    Tink
    Tink
    Mar 14, 2020 via iPhone
    2
    linux ? win ? 直接执行 shell 是肯定可以的
    misaka19000
    misaka19000
    Mar 14, 2020 via Android
    3
    ❤
    lc7029
    lc7029
    Mar 15, 2020
    4
    做个机械手,通过 python 控制机械手拔掉网线
    Skyline57
    Skyline57
    May 19, 2020
    5
    机械手的牛逼
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4716 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 01:39 · PVG 09:39 · LAX 17:39 · JFK 20:39
    ♥ Do have faith in what you're doing.