- 博客(9)
- 收藏
- 关注
原创 关于pyinstaller打包程序时设置icon时的一个坑
之前在用pyinstaller打包程序的时候遇到了关于设置图标的一点小问题,无论在后面加--icon 或是-i都出现报错。查了下stackflow上的相关问题发现,实际上由于系统对图标尺寸是有要求的,打包程序的时候要有相应尺寸的。故在制作图标的时候最好找相关网站在线转一个就可以了,我用的这个:https://lvwenhan.com/convertico/参考:https://stackoverf...
2018-06-28 17:40:52
21938
1
原创 使用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
662
原创 IMAPP的下载与配置
使用IMAPP Virtual Appliance Version 2.0对MODIS 和AIRSL0数据进行处理。安装并测试IMAPP首先在http://cimss.ssec.wisc.edu/imapp/download/下载IMAPP安装包,其在Win、Linux平台通用。解压安装包后有如下四个软件:注意需要使用VMware Player打开。首次
2017-09-28 16:34:24
1346
原创 PyQt5组件读取参数方法
1.QLineEditQLineEdit.text()#输出str类型2.QCheckBoxQCheckBox.checkState()#状态 选定:int(QCheckBox.checkState())==2#未选定:int(QCheckBox.checkState())==03.QComboBoxQComboBox.currentText()
2017-08-31 11:22:11
2545
原创 安装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
67317
79
原创 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
376
原创 猜数字
#include #include "time.h"#include "stdlib.h"int main(){ using namespace std; int x,y; srand((unsigned)time(NULL)); y=1+rand()%99; cout<<"Enter a number between 0 to 100."<<e
2017-04-21 17:57:33
186
原创 C++ primer plus第6版第四章作业
1.#include int main(){ using namespace std; const int size= 20; char first_name[size]; cout<<"What is your first name? "; cin.getline(first_name,size); char last
2017-04-20 20:26:54
246
原创 C++ primer plus第6版第三章作业
2.编写一个小程序,要求以几英尺几英寸的方式输入身高,并以磅为单位输入体重。(使用3个变量来储存这些信息。)该程序报告其BMI(Body Mass Index,体重指数)。为了计算BMI,该程序以英寸的方式指出用户的身高(1英尺为12英寸),并将以隐村为单位的身高转换为以米为单位的身高(1英寸=0.0254米)。然后,将以磅为单位的体重转换为以千克为单位的体重(1千克=2.2磅)。最后,计算相应的
2017-04-18 21:07:24
569
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人