摘要: matplotlib模板: 1:线图 plot()单线段图 2:多个线图 subplot()Multiple axes (i.e. subplots) are created with the subplot() function。 3:图像 imshow()显示图像尺寸 4:轮廓和颜色 pcolo 阅读全文
posted @ 2018-06-25 23:00 三天泪 阅读(696) 评论(0) 推荐(0)
摘要: Windows / Linux pip 相关依赖 Python (>= 2.7 or >= 3.4) NumPy (>= 1.7.1) setuptools dateutil (>= 2.1) pyparsing libpng (>= 1.2) pytz FreeType (>= 2.3) cycl 阅读全文
posted @ 2018-06-25 22:30 三天泪 阅读(489) 评论(0) 推荐(0)
摘要: t = float(input("t(℃)=")) t = float(input("t(℃)=")) 阅读全文
posted @ 2018-06-25 22:10 三天泪 阅读(8881) 评论(0) 推荐(1)
摘要: How to setup multimedia on CentOS 7 You will need to also install the EPEL repository as nux-dextop depends on this for some of its packages. Step 1: 阅读全文
posted @ 2018-05-21 19:10 三天泪 阅读(1538) 评论(0) 推荐(0)
摘要: import matplotlib.pyplot as pltimport numpy as np y = df.loc[0:100, 4].valuesy = np.where(y == 'Iris-setosa',-1,1)X = df.iloc[0:100,[0,2]].valuesplt.s 阅读全文
posted @ 2018-04-20 13:27 三天泪 阅读(299) 评论(0) 推荐(0)
摘要: 1.确保PIP的存在 2.CMD命令进入C:\Python34\Scripts里面后再执行PIP命令安装pip install wheel # D: 和cd 地址 3.把文件最好放在\Script文件夹里面再pip install xxxx.whl 4.注意whl文件名不能改 必须一模一样和原名 当 阅读全文
posted @ 2018-04-20 10:27 三天泪 阅读(3938) 评论(0) 推荐(0)
摘要: 1,解决办法 "C:\\Users\\Darkness-02\\Desktop\\test.txt"多加一个反斜杠就行了2,解决办法r"C:\Users\Darkness-02\Desktop\txt.txt"变为字符串 玩具 with open("C:\\Users\\Darkness-02\\D 阅读全文
posted @ 2018-04-20 09:57 三天泪 阅读(372) 评论(0) 推荐(0)
摘要: pip of python3 installed is play well with Django and spider. #安装pip可以很好的使用django和爬虫 wget https://files.pythonhosted.org/packages/c4/44/e6b8056b6c8f2b 阅读全文
posted @ 2018-04-14 01:15 三天泪 阅读(594) 评论(0) 推荐(0)
摘要: 统计序列中元素出现的频次 如何统计出某一个随机数列的元素出现的次数是多少? print (sorted(c.items(),key=lambda c:c[1])) c3 = c2.most_common(3)print(c3) 阅读全文
posted @ 2017-12-19 17:35 三天泪 阅读(142) 评论(0) 推荐(0)
摘要: 学生信息系统中数据为固定格式: (名字,年龄,性别,邮箱地址,......) 学生数量很大为了减小存储开销,对每个学生信息用元组表示: ('jim',18,'male','jim8765@gmail.com') 访问时,我们使用引擎(index)访问,大量索引降低程序可读性。 1,枚举 studen 阅读全文
posted @ 2017-12-18 17:35 三天泪 阅读(184) 评论(0) 推荐(0)