在N95上的PYS60 2.0中无法导入ScripText模块
-
29-09-2019 - |
题
当我尝试在N95手机上的PYS60 2.0上导入ScripText时,我会收到导入错误,说没有名为ScripText的模块。
我该如何解决问题是什么?
解决方案
从:http://pys60.garage.maemo.org/doc/s60/scriptext.html
注意:该服务可从“ S60第三版FP2及以后”获得。
N95是第三版FP1设备。
您可以根据本模块的可用性在运行时调整应用程序,通过将导入放在尝试中。
try:
import scriptext
except ImportError:
# Module could not be imported, tell the user to update to a newer device
# or continue without it if having scriptext is not crucial to your app.
不隶属于 StackOverflow