摘要: 关键代码: 完整测试: 左上角可以看到小图标,任务栏图标需要打包成exe才能看到 阅读全文
posted @ 2019-08-25 20:41 淇实是我 阅读(660) 评论(0) 推荐(0) 编辑
摘要: #以下为QT设计师生成的界面代码: 阅读全文
posted @ 2019-08-24 13:35 淇实是我 阅读(4504) 评论(0) 推荐(0) 编辑
摘要: 其中涉及一些条件的判断: 循环实现:(dict,sheet均为字典,主要是row是sheet字典中最底层列表的某一行数据,这大致是一个筛选数据的过程 函数实现: 阅读全文
posted @ 2019-08-09 11:43 淇实是我 阅读(428) 评论(0) 推荐(0) 编辑
摘要: untitle.py(以下由QT designer生成) 阅读全文
posted @ 2019-08-05 11:15 淇实是我 阅读(584) 评论(0) 推荐(0) 编辑
摘要: 在安装python的目录下Lib\site-packages\PyQt5\Qt\bin找到designer.exe,打开即可使用 在pyCharm下使用它 File>Setting>Tools>External Tools下点击“+” Name随便起 working director直接填(不要瞎改 阅读全文
posted @ 2019-08-01 16:07 淇实是我 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 以上方法不常用 报错: flush的作用: truncate截断方法: 文件模式: r+:读写模式,读正常,写的时候在最后写,但写了之后光标移动到最后,想要再读需要移动光标 w+:写读模式,写在最开始写,会覆盖原来的内容,想要读的时候要移动光标,基本上不用 a+:光标一开始在最后,读写都是在最后,不 阅读全文
posted @ 2019-07-30 16:09 淇实是我 阅读(128) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h" #include #define GLUT_DISABLE_ATEXIT_HACK //不写这句话总运行出错,我也不知道为啥。。。 #include #include int change = 10; static GLfloat spin = 0.0;//static:静态全局变量,只要程序运行,内存中一直存在,文件内可见,文件外不可见 void in... 阅读全文
posted @ 2019-07-30 15:13 淇实是我 阅读(439) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h" #include #include #include #include const double TWO_PI = 6.2831853; /*Initial display-window size*/ GLsizei winWidth = 800, winHeight = 600; GLuint regHex; class screenPt { ... 阅读全文
posted @ 2019-07-30 11:25 淇实是我 阅读(516) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h" #include /*Initial display-window size*/ GLsizei winWidth = 600, winHeight = 500; /*Initialize raster position*/ GLint xRaster = 25, yRaster = 150; GLubyte label[36] = { 'J','a'... 阅读全文
posted @ 2019-07-30 11:24 淇实是我 阅读(204) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h" #include #include #include const double TWO_PI = 6.2831853; /*Initial display-window size*/ GLsizei winWidth = 400, winHeight = 400; GLuint regHex; class screenPt { private: ... 阅读全文
posted @ 2019-07-30 11:22 淇实是我 阅读(591) 评论(0) 推荐(0) 编辑