摘要:
1.help()进入帮助文档 2.查看所有模块 3.导入模块后,查看模块使用方法 4.查看模块下所有函数名称,前提要import 5.查看模块下的函数用法 阅读全文
摘要:
1.关注函数参数的类型,如列表,字符串,int,而不是关注函数的功能 2.导入模块numpy,dir(numpy) 查看所有属性 3.‘’.join(列表) 将列表拆成字符串 阅读全文
摘要:
1 1 >>> import matplotlib.pyplot as plt 2 2 >>> plt.axis([0,5,0,20]) 3 3 [0, 5, 0, 20] 4 4 >>> plt.title('my first plot',fontsize=20,fontname='Times New Roman') 5 5 6 6 >>> plt.xlabel('c... 阅读全文