摘要: list1 = [['张三','男','未婚',20],['李四','男','已婚',28],['小红','女','未婚',18],['小芳','女','已婚',25]] output = open('data.xls','w',encoding='gbk') output.write('name\ 阅读全文
posted @ 2019-02-13 09:00 疯狂的骆驼 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 返回函数 def func(flag): def sum(a,b): return a+b def jianfa(a,b): return a-b if flag == "+": return sum else: return jianfa result = func("+") print(resu 阅读全文
posted @ 2019-02-02 03:22 疯狂的骆驼 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 自定义信号: 1.装饰器信号 # -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'class_ts.ui' # # Created by: PyQt5 UI code generator 5.11 阅读全文
posted @ 2019-02-01 23:20 疯狂的骆驼 阅读(1626) 评论(0) 推荐(0) 编辑
摘要: 参考的链接的网址:https://www.cnblogs.com/aheng123/p/5630761.html 整个这个实际上是遵循CSS 的对应的写法的,我接下来就将按照自己的要编的东西,为大家举例子 这个是CSS的手册,所有的东西都可以参考这里: https://css.doyoe.com/ 阅读全文
posted @ 2019-01-28 19:05 疯狂的骆驼 阅读(4211) 评论(0) 推荐(0) 编辑
摘要: 错误如下 Process finished with exit code -1073741819 (0xC0000005)11. h5py这个坑之前使用TensorFlow好好的,为了装cv2不小心装了一个h5py包,之后死活报上面的错误,解决方案是卸载该包: pip uninstall h5py 阅读全文
posted @ 2019-01-28 08:55 疯狂的骆驼 阅读(296) 评论(0) 推荐(0) 编辑
摘要: PyQt5图形和特效之窗口风格(一) 2018年08月19日 19:33:00 jia666666 阅读数:1870更多 所属专栏: PyQt5快速开发与实战-学习笔记 PyQt5图形和特效之窗口风格(一) 2018年08月19日 19:33:00 jia666666 阅读数:1870更多 所属专栏 阅读全文
posted @ 2019-01-17 15:57 疯狂的骆驼 阅读(299) 评论(0) 推荐(0) 编辑
摘要: def setValue2inputs(self): print('测试') # 清空输入框中所有的数据 jsresultstr = '' for r in self.last_100result: type = self.radioSelectName num = "" ... 阅读全文
posted @ 2019-01-07 16:36 疯狂的骆驼 阅读(155) 评论(0) 推荐(0) 编辑
摘要: pyqt5 在qt designer后以弹窗的方式连接多个UI图形界面 当我们通过pyqt开发时,eric6为我们提供了一个方便的工具:图形化的绘制UI工具--qt designer。 我们可以通过它开发多个UI,然后利用信号-槽工具,将功能代码附着在上面。也可以将多个界面连接起来。 接下来,我要提供将多个UI链接起来的思路。 一:讲解:qt designer 自动... 阅读全文
posted @ 2019-01-05 13:06 疯狂的骆驼 阅读(242) 评论(0) 推荐(0) 编辑
摘要: from PyQt5.QtWidgets import * from PyQt5.QtCore import Qt, pyqtSignal, QTimer class MyWindow(QWidget): def __init__(self): super().__init__() self.setWindow... 阅读全文
posted @ 2019-01-05 13:03 疯狂的骆驼 阅读(219) 评论(0) 推荐(0) 编辑
摘要: Python格式化函数 | format() 原创: wen EnjoyPython 昨天 介绍Python中format()函数的主要用法 格式化字符串: 基本格式:<模板字符串>.format(<逗号分隔的参数>)现有 : nums = [1, 3, 5, 7, 9, 0, 2, 4, 6, 8 阅读全文
posted @ 2018-12-30 00:44 疯狂的骆驼 阅读(1854) 评论(0) 推荐(0) 编辑