2020年10月29日
摘要: c=4 if c>5: print('hello') elif c<5: print('hei') else: print('ha') if else3个判断,只要满足1个,其它的就不去判断了。 阅读全文
posted @ 2020-10-29 21:19 一杯明月 阅读(130) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/cunchi4221/article/details/107478606 python 获取唯一值 In this article, we will be understanding 3 ways to get unique values from a Py 阅读全文
posted @ 2020-10-29 19:47 一杯明月 阅读(3538) 评论(0) 推荐(0) 编辑
摘要: 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 一杯明月 阅读(15873) 评论(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 一杯明月 阅读(1552) 评论(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 一杯明月 阅读(2228) 评论(0) 推荐(0) 编辑
摘要: 1.可也直接进行第2步,但是如果不行,即如果没有snap,应首先安装snap. 2.然后: sudo snap install cloudcompare #完成安装好 #open the main software CloudCompare 3.安装完成后直接输入:CloudCompare 如果找不 阅读全文
posted @ 2020-10-29 10:08 一杯明月 阅读(2434) 评论(0) 推荐(0) 编辑