06 2017 档案

摘要:import strings='abc'#去除空格s = ' asd f f s 'print(s.strip())print(s.lstrip())print(s.rstrip())print(s) #字符串连接s1 = 'abc's2 = 'dfe'print(s1+ "\n" + "kkk" 阅读全文
posted @ 2017-06-26 00:28 crazybird123 阅读(140) 评论(0) 推荐(0)
摘要:1、创建数组 import numpy as np>>> arrayTest=np.array([[1,2,3], [4,5,6]]) >>> print(arrayTest) [[1 2 3] [4 5 6]] >>> print('dim: ', arrayTest.ndim)dim: 2 >> 阅读全文
posted @ 2017-06-06 00:48 crazybird123 阅读(151) 评论(0) 推荐(0)