摘要:
pip install numpy from sklearn.datasets import load_irisiris = load_iris()print(iris.keys()) ##iris的数据集 print(type(iris)) 结果: #取出鸢尾花特征和鸢尾花类别数据,查看其形状及数 阅读全文
摘要:
#获取当前时间from datetime import datetimetime=datetime.now()print(time)dtp=datetime.strptime('2018年9月22日9时5分5秒','%Y年%M月%d日9时5分5秒')print(dtp) #用datetime.strip() 将字符串转时间end=datetime.strptime("2018-10-24 5... 阅读全文
摘要:
阅读全文
摘要:
##(函数定义) 阅读全文