python 文件名是orientationplot.py 这个文件google 很容易找到。此 python 脚本用于可视化 WindowOrientationListener 在 android 中的行为。但它是为 linux 编写的。我想在 Windows 中使用它。但是有一个错误,我怎样才能让这个文件在windows中运行。
Traceback (most recent call last):
File "G:\perftool\orientationplot\orientationplot.py", line 27, in <module>
import fcntl
ImportError: No module named fcntl
fcntl.fcntl(stream, fcntl.F_SETFL, os.O_NONBLOCK)