摘要: ## 一、Pycharm中配置Pyinstaller 首先,要下载个pyinstaller库,用pip install installer等待完成即可 (顺带记录下pip 配置国内镜像的方法: 国内源: - 阿里云 http://mirrors.aliyun.com/pypi/simple/ - 中 阅读全文
posted @ 2023-05-25 15:44 写BUG的猪 阅读(774) 评论(0) 推荐(0) 编辑
摘要: 在Pycharm中通过GIT把项目上传到Gitee 学习PyQt5,准备编个小程序,上传到Gitee,老是用命令行太麻烦,所以准备在Pycharm中配置上传工具,网上找了好多教程,记录整理一下。 一、工具及准备工作 Pycharm 我的是PyCharm Community Edition 2021. 阅读全文
posted @ 2023-05-25 13:32 写BUG的猪 阅读(1126) 评论(0) 推荐(0) 编辑
摘要: 朋友有个很久不用的2013年的MacBook Air,由于一直在用windows,从未用过OS系统,因此想拿来尝试一下。没曾想,居然进了一个不大不小的坑!折腾了许久,写篇文纪念一下浪费的“青春”[doge] 我的OS系统初体验(第一个坑) 由于这个本是2013年的,而且好几年不用了,一开机就进了个大 阅读全文
posted @ 2021-03-11 15:03 写BUG的猪 阅读(1137) 评论(0) 推荐(0) 编辑
摘要: 1、读取超链接: strold = cell.hyperlink.target 2、写入超链接: cell.value='=HYPERLINK("{}","{}")'.format('link','name') 3、批量替换超链接: 有时excel会自动更新excel中的超链接,有时禁用自动更新后还 阅读全文
posted @ 2021-02-22 16:12 写BUG的猪 阅读(3961) 评论(0) 推荐(0) 编辑
摘要: 1、pip openpyxl库: pip install openpyxl -i http://pypi.douban.com/simple --trust-host pypi.douban.com 2、导入模块 import openpyxl from openpyxl load_workbook 阅读全文
posted @ 2021-02-20 17:04 写BUG的猪 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 1 import sys 2 from PyQt5.Qt import * 3 4 class Mwindow(QWidget): 5 leftclick = False 6 7 def __init__(self): 8 super().__init__() 9 self.resize(500,5 阅读全文
posted @ 2021-02-07 13:12 写BUG的猪 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 1 import sys 2 from PyQt5 import QtWidgets,QtCore 3 from PyQt5.QtCore import Qt 4 from PyQt5.uic.properties import QtGui 5 6 key_list=['Qt.ControlModi 阅读全文
posted @ 2021-02-06 17:43 写BUG的猪 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 1 import sys 2 import typing 3 4 from PyQt5 import QtWidgets, QtGui, QtCore 5 import random 6 7 class Mywindow(QtWidgets.QWidget): 8 def __init__(self 阅读全文
posted @ 2021-02-06 14:19 写BUG的猪 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 1 信号与槽的设置中,槽函数不用写括号: btn.clicked.connect(cao()) def cao(): ******** 会报错:argument 1 has unexpected type 'NoneType' 应写成: btn.clicked.connect(cao) 2 重写类继 阅读全文
posted @ 2021-02-06 14:15 写BUG的猪 阅读(228) 评论(1) 推荐(0) 编辑
摘要: xml中的设置: <android.support.v7.widget.Toolbar android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" 阅读全文
posted @ 2021-01-26 20:14 写BUG的猪 阅读(236) 评论(0) 推荐(0) 编辑