X-man

导航

2015年11月20日 #

python 字符串与数字之间的转换

摘要: 1.数字转字符串i = 123str = ‘%d’ %istr即为转换成的字符串2.字符串转换成数字:import stringtt='555'ts=string.atoi(tt)ts即为tt转换成的数字 阅读全文

posted @ 2015-11-20 16:27 雨钝风轻 阅读(1455) 评论(0) 推荐(0) 编辑

matplotlib 安装与使用

摘要: 1.在ubuntu下输入 sudo apt-get install python-matplotlib 安装matplotlib 2.简单代码使用 2. 3.我们希望在 2π/3 的位置给两条函数曲线加上一个注释。首先,我们在对应的函数图像位置上画一个点;然后,向横轴引一条垂线,以虚线标记;最后,写 阅读全文

posted @ 2015-11-20 15:46 雨钝风轻 阅读(407) 评论(0) 推荐(0) 编辑