问题集
碰到的各种问题
sweet tea111
一只努力了一点的小菜鸟
展开
-
Windows10环境下,设备进入fastboot状态,fastboot无法识别到设备
【问题】Windows10环境下,设备进入fastboot模式,执行fastboot devices无反应,识别不到设备【解决】通过Windows更新安装Android Bootloader接口从Windows版本20H2开始,悄悄的把驱动更新添加到“可选更新”中。1.打开Windows更新。在检查更新按钮下,找到可选的更新按钮。2.选择Google,然后下载并安装。3.安装后如还不行,重启手机和电脑...原创 2022-01-06 15:09:03 · 11151 阅读 · 4 评论 -
matplotlib保存图片是空白
matplotlib保存图片是空白如果使用了plt.show() 把plt.savefig()放在plt.show()之前运行就行。 因为plt.show()之后会默认打开一个新的空白画板原创 2021-09-13 16:52:55 · 562 阅读 · 0 评论 -
Q——AndroidStudio无法执行Java类的main方法
AndroidStudio无法执行Java类的main方法错误提示`FAILURE: Build failed with an exception.Where:Initialization script ‘/tmp/ReflectTest_main__.gradle’ line: 20What went wrong:A problem occurred configuring project ‘:app’.Could not create task ‘:app:ReflectTe原创 2021-09-02 16:19:24 · 127 阅读 · 0 评论 -
Q——Log输入到指定路径出现乱码
Log输入到指定路径出现乱码在pycharm的file→settings中,找到Editor,其中的code style中有一个file encodings点击后,右侧有三处需要修改:1.Global Encoding改为ISO-8859-12.Project Encoding改为 GBK3.Default encoding for properties files 改为:UTF-16然后点击apply 应用后点击OK即可再次运行脚本,控制台就不会出现乱码,显示正常了...原创 2021-09-02 16:18:18 · 137 阅读 · 0 评论 -
Q——使用unittest框架经常报错No Test Found
使用unittest框架经常报错No Test Found1、Edit Configurations2、点击“+"3、选择python,输入名字,输入脚本路径,确认原创 2021-09-02 16:10:55 · 229 阅读 · 0 评论 -
Q——方法执行一个结束后陷入死循环,不在执行
方法执行一个结束后陷入死循环,不在执行因为多线程中,主线程结束了,子线程依然在运行重新修改加了一个t.setDaemon,只要主线程执行结束,子线程也停止 threads = [] threads.append(threading.Thread(target=logcat_start04)) threads.append(threading.Thread(target=run04)) print(threads)原创 2021-09-02 16:07:27 · 101 阅读 · 0 评论 -
QA
Q1.方法执行一个结束后陷入死循环,不在执行A:因为多线程中,主线程结束了,子线程依然在运行重新修改加了一个t.setDaemon,只要主线程执行结束,子线程也停止 threads = [] threads.append(threading.Thread(target=logcat_start04)) threads.append(threading.Thread(target=run04)) print(threads)原创 2021-01-11 15:30:24 · 110 阅读 · 0 评论