摘要:
#读取文件text = 'Be assured that individual statistics are not disclosed and this is for internal use only..I am pleased to inform you that you have been 阅读全文
摘要:
print("5.取出所有花的花萼长度(cm)的数据------------------------------------------------") #鸢尾花花萼长度的数据 sepal_length=np.array(list(len[0] for len in data['data'])) #一共有150种 print(sepal_length) print("6... 阅读全文
摘要:
import numpy from datetime import datetime from Numpy import numSum from Numpy1 import npSum def listSum(n): a = numpy.arange(n) b = numpy.arange(0,5* 阅读全文
摘要:
#读取fire文本文件 f = open('fire.txt','r',encoding='utf-8') fire = f.read() f.close() print(fire) #预处理 print(fire.lower()) #全部字母小写 a = ",.;:'`" #特殊符号归集为字符串 for b in a: fire.replace(b,' ') #利用for循环... 阅读全文