摘要: 看https://www.paddlepaddle.org.cn/en python -m pip install paddlepaddle-gpu==2.5.2.post102 -f https://www.paddlepaddle.org.cn/whl/linux/mkl/avx/stable. 阅读全文
posted @ 2024-04-16 21:13 九里九里 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 文件结构如下 ├── A │ ├──a.py │ ├── __init__.py │ └── b.py ├── B │ ├── c.py │ ├── __init__.py │ └──d.py 想在c.py调用a.py,有时候即使是加了__init__.py还是找不到包,可以这样操作,在c.py写入 阅读全文
posted @ 2022-08-19 12:38 九里九里 阅读(870) 评论(0) 推荐(0) 编辑
摘要: git 用法 版本控制 作用:版本迭代并且恢复,可以用git 作为版本控制工具。 功能:多人开发,统计工作量,追踪或者记录 分类 本地版本控制 对于每个版本进行记录,每次个人改了哪些哪些,在本机上,对于不同版本进行快照 缺点:本地主机崩溃,全部GG 集中式版本控制 (Z.B. SVN) 所有版本的数 阅读全文
posted @ 2022-07-13 00:01 九里九里 阅读(34) 评论(0) 推荐(0) 编辑
摘要: import jsonwith open(filedir, 'r') as load_f: load_dict = json.load(load_f) with open(filedir, "w") as f: json.dump(load_dict, f, indent=4) #indent:格式 阅读全文
posted @ 2021-10-08 13:45 九里九里 阅读(93) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*-import osdef findAllFile(base): v=[] for root, ds, fs in os.walk(base): # print(root) # print('DS=',ds) # print('FS=',fs) for f 阅读全文
posted @ 2021-10-07 21:35 九里九里 阅读(253) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <vector> #include <string> #include <iterator> #include <fstream> #include <sstream> #include<time.h> using namespace std 阅读全文
posted @ 2021-07-19 11:37 九里九里 阅读(58) 评论(0) 推荐(0) 编辑
摘要: 1.matlab里面一个函数不要连着调用两次,不然特别容易出错 undefined function 阅读全文
posted @ 2021-03-17 22:27 九里九里 阅读(254) 评论(1) 推荐(0) 编辑
摘要: 参考链接:https://blog.csdn.net/sunt2018/article/details/106633715 cv2.putText后发现得到的frame为None,猜测可能是版本问题 添加文字后直接显示原图frame而非frame1 也能显示添加字符的图像 # !/usr/bin/p 阅读全文
posted @ 2021-02-25 12:31 九里九里 阅读(322) 评论(0) 推荐(0) 编辑
摘要: 运行环境:python2.7 运行报错: self.pic1= PlotCanvas(self, width=4, height=5) # 实例化一个画布对象 File "/home/jingzhi/Documents/MetaSim/fall_UI/zzzz.py", line 39, in __ 阅读全文
posted @ 2021-02-01 18:04 九里九里 阅读(2435) 评论(0) 推荐(0) 编辑
摘要: data=[1,2,3,4,5] data_1=data data_1.append([2,3]) print(data) #运行之后可以发现,data_1改变后data也变了 应用这个方法就可以了 import copy c = copy.deepcopy(data) 阅读全文
posted @ 2020-12-15 20:21 九里九里 阅读(4157) 评论(0) 推荐(1) 编辑