
python
文章平均质量分 59
sinat_21427221
这个作者很懒,什么都没留下…
展开
-
python学习笔记
# coding=utf-8# __auther__='a'"""创建第一个函数,输出hello,world!"""print('hello,world!')#formate函数用法age=20name='jonason'print('{0} was {1} years old when he wrote this book.'.format(name,age))#fo原创 2017-07-20 19:12:34 · 377 阅读 · 0 评论 -
安装PyQt5时缺少designer.exe的解决办法
安装环境:Windows 7 Python 3.5 PyCharm Community Edition 2017.1.5 x64 按照 https://riverbankcomputing.com/software/pyqt/download5 介绍的方法,使用 pip3 install原创 2017-08-21 13:50:26 · 67378 阅读 · 78 评论 -
PyQt5组件读取参数方法
1.QLineEditQLineEdit.text()#输出str类型2.QCheckBoxQCheckBox.checkState()#状态 选定:int(QCheckBox.checkState())==2#未选定:int(QCheckBox.checkState())==03.QComboBoxQComboBox.currentText()原创 2017-08-31 11:22:11 · 2548 阅读 · 0 评论 -
使用matplotlib对EC数据进行可视化探索
使用matplotlib绘制EC气压层面的等高线图及3D图像,首先安装matplotlib库和numpy库,这里略去安装步骤。等高线图制作:import matplotlib.pyplot as pltimport numpy as npdef height(): f = open('ecpl_2018021500000_H_0200.txt', 'r') xfile = ...原创 2018-06-14 20:04:30 · 663 阅读 · 0 评论 -
关于pyinstaller打包程序时设置icon时的一个坑
之前在用pyinstaller打包程序的时候遇到了关于设置图标的一点小问题,无论在后面加--icon 或是-i都出现报错。查了下stackflow上的相关问题发现,实际上由于系统对图标尺寸是有要求的,打包程序的时候要有相应尺寸的。故在制作图标的时候最好找相关网站在线转一个就可以了,我用的这个:https://lvwenhan.com/convertico/参考:https://stackoverf...原创 2018-06-28 17:40:52 · 21942 阅读 · 1 评论