摘要: 1、将工程目录添加到sys.path中 (测试有效 import syscpath = 'project_path' # 写成项目的地址 最好是绝对地址 因为有的地方确实会报错 不清楚原因sys.path.append(cpath) eg: sys_path = os.path.abspath(os 阅读全文
posted @ 2023-08-09 17:49 hello_tree 阅读(131) 评论(0) 推荐(0)
摘要: 记录1: https://pypi.org/project/roslibpy/ 记录2: def message_callback_pause(self, message): pass def ros_run(self): client = roslibpy.Ros(host='192.168.64 阅读全文
posted @ 2023-08-03 10:13 hello_tree 阅读(24) 评论(0) 推荐(0)
摘要: https://cloud.tencent.com/developer/article/2089139 阅读全文
posted @ 2023-08-03 09:25 hello_tree 阅读(20) 评论(0) 推荐(0)
摘要: https://www.lmlphp.com/user/19897/article/item/503866/ adb shell monkey -p com.keenon.peanut.solutionfooddelivery --pct-syskeys 0 --ignore-crashes --i 阅读全文
posted @ 2023-06-21 17:00 hello_tree 阅读(34) 评论(0) 推荐(0)
摘要: import time import pywifi from pywifi import const #有密码 def connect_wifi_password(name, password): wifi = pywifi.PyWiFi() # 创建一个wifi对象 ifaces = wifi.i 阅读全文
posted @ 2023-04-21 13:42 hello_tree 阅读(297) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/hsukang/p/17132256.html 阅读全文
posted @ 2023-04-07 16:52 hello_tree 阅读(18) 评论(0) 推荐(0)
摘要: 前置更新文件: 其中,<文件路径>是要强制更新的文件的路径。 这个命令将从仓库的最新提交中检出指定的文件,并覆盖本地的文件内容。注意,这将导致本地对该文件进行的任何修改都会丢失,请谨慎使用。 git checkout HEAD -- <文件路径> 前置更新文件夹 git checkout HEAD 阅读全文
posted @ 2023-04-04 11:40 hello_tree 阅读(166) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/weixin_38809962/article/details/126966598 AttributeError: ‘NoneType‘ object has no attribute ‘shape‘ 出现以上问题,原因大致可分为一下几种: 1.图片不存在 阅读全文
posted @ 2023-03-28 10:02 hello_tree 阅读(102) 评论(0) 推荐(0)
摘要: 1. 可能原因就是不是root 用户登录的 2、文件夹权限需要改变 https://blog.csdn.net/weixin_42895478/article/details/114928866 阅读全文
posted @ 2023-03-24 14:09 hello_tree 阅读(627) 评论(0) 推荐(0)
摘要: import restr = "电量低4%实在不能工作了adbds"info = re.findall(r'\d', str)a=''.join(info)print(re.findall(r'[a-zA-Z]',str)) # 取带小写字母print(re.findall(r'[^u4e00-u9 阅读全文
posted @ 2023-03-07 19:41 hello_tree 阅读(34) 评论(0) 推荐(0)