当我尝试在我的N95手机上的PyS60 2.0版上导入脚本文本时,我得到一个导入错误,指出没有名为脚本文本的模块。
我如何才能找出问题所在?
发布于 2010-10-30 18:16:57
来自:http://pys60.garage.maemo.org/doc/s60/scriptext.html
注意:该服务可从'S60 third edition FP2及更高版本‘获得。
N95是第三版FP1设备。
您可以在运行时根据此模块的可用性调整您的应用程序,方法是将导入放在try..except块中:
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.https://stackoverflow.com/questions/3092707
复制相似问题