小编Way*_*all的帖子

如何让Python知道用户连接了哪些Wifi?

我14岁,请原谅我的Python知识。我正在尝试使用以下if / else语句使该程序仅在我在学校(在学校的Wifi上)时才能运行:

if ontheschoolwifi:
     Keep running the program
else:
     close the program because im not at school and wont need it
Run Code Online (Sandbox Code Playgroud)

我想知道如何让python知道如何获取它所连接的wifi。预先感谢您的帮助 :)

python module wifi python-2.7

6
推荐指数
3
解决办法
6023
查看次数

标签 统计

module ×1

python ×1

python-2.7 ×1

wifi ×1