问答详情
源自:4-15 MonkeyRunner补充说明

monkeyrunner

Android Studio3.0setup\Android_SDK\tools\bin>monkeyrunner C:\Users\shen\Desktop\test\p.py

180605 09:09:17.555:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] Script terminated due to an exception

180605 09:09:17.555:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions]SyntaxError: Illegal character in file 'C

:\Users\shen\Desktop\test\p.py' for encoding 'utf-8'


提问者:qq_fly_5 2018-06-05 09:12

个回答

  • 慕无忌4258243
    2019-02-09 21:24:37

    #!/usr/bin/python
    #coding:utf-8

      关于字符编码我是这样写的


  • 慕无忌4258243
    2019-02-09 21:23:38

    把脚本防止sdk中tools   bin目录下

    就没有问题了