- 博客(599)
- 资源 (5)
- 收藏
- 关注
原创 PLC 读写 西门子PLC
Python使用snap7库进行采集S7协议通信.py。OP05A保存成功反馈.py。OP05A触发.py。OP05A复位.py。
2023-12-15 14:31:36 87
原创 D:\Program Files\Python38\lib\site-packages\apscheduler\util.py:428: PytzUsageWarning: The localize
【代码】D:\Program Files\Python38\lib\site-packages\apscheduler\util.py:428: PytzUsageWarning: The localize。
2023-03-11 16:46:22 216 1
原创 redis 操作
启动:redis-server.exe --service-start。指令:redis-server --service-uninstall。关闭:redis-server.exe --service-stop。
2023-02-09 15:02:27 85
原创 this repository(including wiki) size 587.70 MB exceeds 500.00 MB
【代码】this repository(including wiki) size 587.70 MB exceeds 500.00 MB。
2023-01-09 09:50:56 917
原创 Driver not loaded Driver not loaded
代码如下:import redisfrom PyQt5.Qt import *from resource.EquToMesEquipmentProcessParam_window import Ui_Formimport sysfrom PyQt5.QtCore import Qtfrom PyQt5.QtSql import QSqlDatabase, QSqlQueryModelfrom PyQt5.QtWidgets import QApplication, QMess...
2022-05-07 14:58:00 412
原创 KeyError: (‘xadmin‘, ‘logs‘)
运行:makemigrations报错:manage.py@yc_xadmin_v1 > makemigrations"C:\Program Files\JetBrains\PyCharm 2017.1.3\bin\runnerw.exe" C:\Users\huanglianggu\AppData\Local\Programs\Python\Python38\python.exe "C:\Program Files\JetBrains\PyCharm 2017.1.3\helper
2022-03-25 15:07:10 1641 1
原创 课时67.扩展的表格控件(QTableWidget)
课时67.扩展的表格控件(QTableWidget)import sysfrom PyQt5.QtWidgets import QWidget, QTableWidget, QHBoxLayout, QApplication, QTableWidgetItem, QAbstractItemViewclass TableWidgetDemo(QWidget): def __init__(self): super(TableWidgetDemo, self).__ini
2022-03-13 17:05:31 467
原创 课时66.扩展的列表控件(QListWidget)
课时66.扩展的列表控件(QListWidget)"""扩展的列表控件(QListWidget)"""from PyQt5.QtWidgets import *import sysclass ListWidgetDemo(QMainWindow): def __init__(self, parent=None): super(ListWidgetDemo, self).__init__(parent) self.setWindowTitle..
2022-03-13 16:15:49 196
原创 课时65.显示列数据(QListView控件)
课时65.显示列数据(QListView控件)"""显示列表数据(QListView控件)"""from PyQt5.QtWidgets import QApplication, QWidget, QVBoxLayout, QListView, QMessageBoxfrom PyQt5.QtCore import QStringListModelimport sysclass ListViewDemo(QWidget): def __init__(self, paren
2022-03-13 11:57:31 551
原创 AttributeError: ‘str‘ object has no attribute ‘decode‘
"D:\Program Files\JetBrains\PyCharm 2017.1.3\bin\runnerw.exe" C:\Users\qd-admin\AppData\Local\Programs\Python\Python38\python.exe "D:\Program Files\JetBrains\PyCharm 2017.1.3\helpers\pydev\pydevd.py" --multiproc --qt-support --client 127.0.0.1 --port 54...
2022-03-03 14:20:13 198
原创 Error running PyUIC: Cannot start process, the working directory ‘-m PyQt5.uic.pyuic register.ui -o
Error running PyUIC: Cannot start process, the working directory '-m PyQt5.uic.pyuic register.ui -o 解决办法:
2022-02-18 16:37:11 2261
原创 ModuleNotFoundError: No module named ‘xadmin‘
Failed to get real commands on module "calb_xadmin_v1": python process died with code 1: Traceback (most recent call last): File "C:\Users\huanglianggu\AppData\Local\Programs\Python\Python38\lib\site-packages\django\apps\config.py", line 118, in cre...
2022-01-17 14:18:34 1623 1
原创 ModuleNotFoundError: No module named ‘widgets‘
"C:\Program Files\JetBrains\PyCharm 2017.1.3\bin\runnerw.exe" C:\Users\huanglianggu\AppData\Local\Programs\Python\Python38\python.exe "C:\Program Files\JetBrains\PyCharm 2017.1.3\helpers\pydev\pydevd.py" --multiproc --qt-support --client 127.0.0.1 --p...
2022-01-17 11:14:19 1811
原创 P110 课时111.多线程更新UI数据
import sysimport timefrom PyQt5.QtCore import QThread, pyqtSignal, QDateTimefrom PyQt5.QtWidgets import QApplication, QDialog, QLineEdit"""P110 课时111.多线程更新UI数据"""class BackendThread(QThread): update_date = pyqtSignal(str) def run(self):.
2022-01-04 15:12:44 87
原创 设置控件的对齐方式
import sys, mathfrom PyQt5.QtWidgets import *from PyQt5.QtCore import Qt"""设置控件的对齐方式"""class HBoxLayoutAlign(QWidget): def __init__(self): super(HBoxLayoutAlign, self).__init__() self.setWindowTitle("水平盒布局") hbox_layou...
2022-01-02 18:20:40 562
原创 水平盒布局
import sys, mathfrom PyQt5.QtWidgets import *"""水平盒布局"""class HBoxLayout(QWidget): def __init__(self): super(HBoxLayout, self).__init__() self.setWindowTitle("水平盒布局") hbox_layout = QHBoxLayout() hbox_layout.addW...
2022-01-02 18:05:28 183
原创 P94 课时95.绝对布局绝对布局
import sys, mathfrom PyQt5.QtWidgets import *"""P94 课时95.绝对布局绝对布局"""class AbsoluteLayout(QWidget): def __init__(self): super(AbsoluteLayout, self).__init__() self.setWindowTitle("绝对布局") self.label1 = QLabel("欢迎", self...
2022-01-02 17:41:11 109
原创 Process finished with exit code -1073741819 (0xC0000005)
Process finished with exit code -1073741819 (0xC0000005)C:\Users\hlg\AppData\Local\Programs\Python\Python35\python.exe "D:\Program Files\JetBrains\PyCharm 2017.1.3\helpers\pydev\pydevd.py" --multiproc --qt-support --client 127.0.0.1 --port 51091 ...
2021-12-09 09:32:43 1736
原创 pyqt 安装PySide2
pip3 install -i https://pypi.doubanio.com/simple/ PySide2D:\PycharmProjects\calb_demo>pip3 install -i https://pypi.doubanio.com/simple/ PySide2DEPRECATION: Python 3.5 reached the end of its life on September 13th, 2020. Please upgrade your Pyth...
2021-11-29 10:27:51 1141
原创 centos7 设置 django 开机自启动
1.在项目的 manage.py 文件夹里新建 一个sh文件vi django_autostart.sh2. django_autostart.sh 文件内容:weiben 是我的项目名称#!/bin/bash#chkconfig:345 61 61#description:django nohup python3 /root/weiben/manage.py runserver 0.0.0.0:8000 &3.把 django_autostart.sh 文件移动到
2021-11-05 15:34:51 494
原创 Redis在Windows(win10)下安装
Redis在Windows(win10)下安装 及启动启动命令:redis-server.exe redis.windows.conf
2021-11-01 13:17:12 94
原创 ping 不通
伟本:Could not activate connection:Activation failed:IP configuration could not be reserved(no available address,timeout,etc
2021-10-31 17:44:41 596
原创 Precision 3630 安装centos7
开机按 F12出现如下Boot mode is set to:UEFI; Secure Boot:OFF到如下界面就进行不下去了
2021-10-28 18:37:51 719
原创 python django 程序开机自启
第一步:到启动命令 放在 start.bat 文件里。win+r 调出输入:shell:startup回车,进入目录创建start.vbs文件开机就可以启动了
2021-10-20 11:21:46 463
原创 P51 D06 04 修改data局部数据
<!--pages/progress/progress.wxml--><view>案例</view><view>点击按钮完成,将图片1的进度更新至90%</view><view wx:for="{{imageList}}"> <view>{{item.title}}</view> <progress percent="{{item.percent}}"></prog...
2021-10-06 14:23:18 53
原创 P50 D06 03 进度条
<!--pages/progress/progress.wxml--><progress percent="{{percent1}}"></progress><progress percent="{{percent2}}" activeColor="#DC143C"></progress>// pages/progress/progress.jsPage({ /** * 页面的初始数据 */...
2021-10-06 13:43:32 54
原创 P43 D5 02 子页面向父页面传值
<!--pages/pub/pub.wxml--><view bindtap="getTopic">{{topicText}}</view>// pages/pub/pub.jsPage({ /** * 页面的初始数据 */ data: { topicText:"请选择话题" }, /** * 生命周期函数--监听页面加载 */ onLoad: fun...
2021-10-05 14:35:12 101
原创 centos 定时任务
vim /etc/crontab进入编辑vim backup.sh如果没有backup.sh文件,就创建一个。backup.sh的文件内容如下#! /bin/basht=$(date +%Y%m%d%H%M%S)mkdir $t编辑保存之后chmod 777 backup.sh使生效crontab /etc/crontab查看任务crontab -l定时任务配置完成...
2021-09-16 11:01:47 44
安装 DjangoUeditor 之后要替换 urls.py 文件
2020-06-18
DjangoUeditor3-2.0.zip
2020-06-18
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人