自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(599)
  • 资源 (5)
  • 收藏
  • 关注

原创 PLC 读写 西门子PLC

Python使用snap7库进行采集S7协议通信.py。OP05A保存成功反馈.py。OP05A触发.py。OP05A复位.py。

2023-12-15 14:31:36 108

原创 一键升级一楼

对应版本:V20231122.1422。

2023-11-22 16:39:27 109

原创 win bat关闭防火墙

win bat关闭防火墙

2023-11-06 13:12:14 305

原创 win 服务操作 删除服务

【代码】win 服务操作 删除服务。

2023-10-24 10:42:16 95

原创 延时 启动exe程序

【代码】延时 启动exe程序。

2023-10-23 16:38:16 195

原创 bat 自动更新程序

【代码】bat 自动更新程序。

2023-10-23 13:21:26 40

原创 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 223 1

原创 redis 操作

启动:redis-server.exe --service-start。指令:redis-server --service-uninstall。关闭:redis-server.exe --service-stop。

2023-02-09 15:02:27 86

原创 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 942

原创 执行 makemigrations 报错

执行 makemigrations VirtualCode。执行 makemigrations。

2023-01-04 10:41:10 185

原创 命令行 创建app

进入 manage.py 目录。

2022-12-16 16:35:47 139

原创 配置 pyqt5

配置 desiger

2022-11-06 21:10:07 161

原创 Mysql 迁移文件

把 E盘 对应的Data 文件夹拷贝到F盘对应位置。先在服务里关闭 mysql服务。

2022-09-08 11:11:50 395

原创 pyqt5 加了样式 运行不起来

命令行 运行 查看原因。

2022-08-16 11:44:16 145

原创 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 413

原创 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 1646 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 474

原创 课时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 197

原创 课时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 559

原创 课时64.显示二维表数据(QTableView控件)

课时64.显示二维表数据(QTableView控件)

2022-03-13 11:34:38 837

原创 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 201

原创 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 2350

原创 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 1652 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 1891

原创 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 88

原创 设置控件的对齐方式

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 574

原创 水平盒布局

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 187

原创 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 112

原创 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 1743

原创 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 1147

原创 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 505

原创 Redis在Windows(win10)下安装

Redis在Windows(win10)下安装 及启动启动命令:redis-server.exe redis.windows.conf

2021-11-01 13:17:12 97

原创 ping 不通

伟本:Could not activate connection:Activation failed:IP configuration could not be reserved(no available address,timeout,etc

2021-10-31 17:44:41 618

原创 Precision 3630 安装centos7

开机按 F12出现如下Boot mode is set to:UEFI; Secure Boot:OFF到如下界面就进行不下去了

2021-10-28 18:37:51 733

原创 python django 程序开机自启

第一步:到启动命令 放在 start.bat 文件里。win+r 调出输入:shell:startup回车,进入目录创建start.vbs文件开机就可以启动了

2021-10-20 11:21:46 484

原创 称重驱动开发

项目初始化完成

2021-10-11 10:43:18 49

原创 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 54

原创 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 56

原创 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 103

原创 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 文件

安装 DjangoUeditor 之后要替换 urls.py 文件 不然报错 /root/data/www/python3_vir/lib/python3.5/site-packages/DjangoUeditor

2020-06-18

DjangoUeditor3-2.0.zip

把 压缩文件 放到服务器上 解压 运行安装 进入 目录DjangoUeditor3-2.0 运行:python setup.py install

2020-06-18

DjangoUeditor-1.8.143.zip

DjangoUeditor-1.8.143.zip 是网上下载的

2020-06-15

grails jobs 定时任务 项目demo

grails jobs 定时任务 项目demo

2017-03-29

json json例子

是在www.w3school.com.cn 基础之上添加了一点自己的内容

2015-07-07

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除