推荐学习书目
› 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 · 3605 views
    This topic created in 2385 days ago, the information mentioned may be changed or developed.

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

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