上一页 1 2 3 4 5 6 ··· 41 下一页
摘要: 当函数要接受元组或者字典参数时,它分别使用*前缀。 在变量前加*,则多余的函数参数会作为一个元组存在args中,如: def func(*ages): func(1,2,3) #args表示(1,2,3)这个元组 如果使用**前缀,多余的参数会被认为是字典 def func(**args): fun 阅读全文
posted @ 2021-07-23 13:55 chamie 阅读(412) 评论(0) 推荐(0) 编辑
摘要: import osimport sys print '***获取当前目录***' print os.getcwd() print os.path.abspath(os.path.dirname(__file__)) print '***获取上级目录***' print os.path.abspath 阅读全文
posted @ 2021-07-23 10:46 chamie 阅读(1263) 评论(0) 推荐(0) 编辑
摘要: pip 从 git 源码仓库直接 install 安装git仓库中的包 pip install git+<git仓库地址> pip install git+<git仓库地址>@<分支名称> 阅读全文
posted @ 2021-07-20 14:48 chamie 阅读(736) 评论(0) 推荐(0) 编辑
摘要: 在linux命令行中键入nvidia-smi,显示没有进程但是GPU显存却使用很多产生原因:历史进程未杀死 解决方案:用下面命令查看后台占用进程: fuser -v /dev/nvidia* 然后kill掉 kill -9 进程号 阅读全文
posted @ 2021-04-22 16:35 chamie 阅读(1136) 评论(0) 推荐(0) 编辑
摘要: *****用root用户 pycharm和blender都可以打开。 阅读全文
posted @ 2021-04-01 09:14 chamie 阅读(482) 评论(0) 推荐(0) 编辑
摘要: 一篇论文创建一个anaconda的环境。 经验:用pip安装,目录定位到site-packages下。 一般建议conda安装,pip安装后import时容易找不着(conda list 会显示哪些包是用pip装的)。 阅读全文
posted @ 2021-03-04 15:33 chamie 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 转载:https://blog.csdn.net/HaoZiHuang/article/details/105071367 阅读全文
posted @ 2021-02-28 11:41 chamie 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 转载:https://www.cnblogs.com/xxpythonxx/p/11332860.html 阅读全文
posted @ 2021-02-22 18:49 chamie 阅读(85) 评论(0) 推荐(0) 编辑
摘要: conda install -c open3d-admin open3d https://blog.csdn.net/avrilzyx/article/details/107512589 阅读全文
posted @ 2021-02-20 12:19 chamie 阅读(2031) 评论(0) 推荐(0) 编辑
摘要: 转载:https://jingyan.baidu.com/article/86fae346beed6b3c49121af5.html 先来看激活出现的“Windows尝试激活时发生错误,错误代码0xC004F035错误”提示,见下图: 下载解压“DBSLDR.EXE”工具,并以“管理员身份”运行“D 阅读全文
posted @ 2021-01-06 10:40 chamie 阅读(851) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 41 下一页