上一页 1 ··· 94 95 96 97 98 99 100 101 102 ··· 178 下一页
  2020年10月29日
摘要: python中 list 与数组的互相转换 (1)list转array a=[] 转换方法是:np.array(a) points=np.array(a,dtype=np.float32) labels = np.array(b,dtype=np.int32) 注: 1.a是列表。 2.在把a转换成 阅读全文
posted @ 2020-10-29 17:59 一杯明月 阅读(16019) 评论(2) 推荐(0)
摘要: https://blog.csdn.net/zhaomax/article/details/82460034 python文件操作write与writelines的区别 转自:https://www.aliyun.com/jiaocheng/448958.html 摘要:write和writelin 阅读全文
posted @ 2020-10-29 11:50 一杯明月 阅读(1648) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/u012671171/article/details/52024874 我在这里总结一下: 假设str是一个字符串 那么str.strip()就是把这个字符串头和尾的空格,以及位于头尾的\n \t之类给删掉。 举例e.g.1 str=" ABC" 那么st 阅读全文
posted @ 2020-10-29 10:54 一杯明月 阅读(2364) 评论(0) 推荐(0)
摘要: 1.可也直接进行第2步,但是如果不行,即如果没有snap,应首先安装snap. 2.然后: sudo snap install cloudcompare #完成安装好 #open the main software CloudCompare 3.安装完成后直接输入:CloudCompare 如果找不 阅读全文
posted @ 2020-10-29 10:08 一杯明月 阅读(2686) 评论(0) 推荐(0)
  2020年10月28日
摘要: https://blog.csdn.net/qq_15192373/article/details/81091278 1. 下载PyCharm安装包 1)进入PyCharm官网,选择Professional专业版,直接点击DOWNLOAD,如图1; 图1 2)进入跳转页面,出现提示框,点savefi 阅读全文
posted @ 2020-10-28 21:37 一杯明月 阅读(6074) 评论(0) 推荐(0)
摘要: >>> import random random.sample('abcdefghij', 3) # ['a', 'd', 'b'] 阅读全文
posted @ 2020-10-28 14:04 一杯明月 阅读(524) 评论(0) 推荐(0)
摘要: os.listdir(path)返回文件列表的顺序是任意的. os.listdir的结果是一个list集,可以使用list的sort方法来排序。如果文件名中有数字,就用数字的排序,下面贴一下简单的示例代码: files=os.listdir(path) files.sort() print file 阅读全文
posted @ 2020-10-28 12:40 一杯明月 阅读(1237) 评论(0) 推荐(0)
  2020年10月27日
摘要: 使用如下指令: $ cp [选项] 源文件或目录 目标文件或目录 含义是把一个或者多个文件复制到目标文件或目录中。 选项有如下指令: a 该选项通常在拷贝目录时使用。它保留链接、文件属性,并递归地拷贝目录,其作用等于dpR选项的组合。 d 拷贝时保留链接。 f 删除已经存在的目标文件而不提示。 i 阅读全文
posted @ 2020-10-27 20:54 一杯明月 阅读(6462) 评论(0) 推荐(0)
摘要: .npy文件: 用np.load()函数读取。 阅读全文
posted @ 2020-10-27 16:51 一杯明月 阅读(4258) 评论(0) 推荐(0)
  2020年10月26日
摘要: 阅读全文
posted @ 2020-10-26 20:17 一杯明月 阅读(311) 评论(0) 推荐(0)
上一页 1 ··· 94 95 96 97 98 99 100 101 102 ··· 178 下一页