在cmd下运行monkeyrunner时报错Script terminated due to an exception

在Notepad++上编写的monkeyrunner脚本在cmd 上运行时,出错:
200215 19:34:51.773:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] Script terminated due to an exception
200215 19:34:51.773:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions]SyntaxError: Non-ASCII character in file ‘C:\Users\Administrator\Desktop\test.py’,
but no encoding declared; see http://www.python.org/peps/pep-0263.html for details

在这里插入图片描述解决方法:
在代码头部加上 # -- coding: utf-8 - 就解决了