嗨,我试着去理解这段代码。我知道它在注册表中获取网关名称和mac地址,但是当我尝试运行此代码时,它不显示任何内容。有人可以给我关于winreg的链接,它有基本的例子。谢谢 from winreg import *
def val2addr(val):
addr = ''
for ch in val:
addr += '%02x '% ord(ch)
ad
我试图运行Ubuntu的液滴的烧瓶中的应用程序,但是当我尝试使用python app.py运行应用程序,我得到以下回溯: * Running on http://0.0.0.0:4000/ (Press CTRL+C to quit)
* Restarting with stat
Traceback (most recent call last):
File "app.py", li
为什么不能从jython访问_winreg模块? c:\>python
Python 2.7.9 (default, Dec 10 2014, 12:24:55) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
import