- 博客(58)
- 资源 (6)
- 问答 (3)
- 收藏
- 关注
原创 chrome net_error_map
https://chromium.googlesource.com/chromium/src.git/+/refs/tags/74.0.3729.78/components/domain_reliability/util.ccnet_error_map[] = { { net::OK, "ok" }, { net::ERR_ABORTED, "aborted" }, { net:...
2019-04-10 18:06:04
1403
原创 Python 文件批量操作
import osfor filePath in [entry.path for entry in os.scandir(r'J:\广场舞VCD\2')]: os.rename(filePath,filePath.replace('.DAT','.MPEG'))
2019-03-03 23:09:49
360
原创 The PyQt5 code porting of Model/View Programming e
the use of the Rows and Columns flagsimport sysfrom PyQt5.QtWidgets import *from PyQt5.QtCore import *from PyQt5.QtGui import *class MyModel(QAbstractTableModel): def __init__(self, pare...
2018-12-01 10:32:49
226
1
转载 cbDumper.py转换为py3后的出错情况
运行2to3转换成py3的代码D:\py I:\Users\i\AppData\Local\Programs\Python\Python36-32\Tools\scripts\2to3.py -w C:\Users\i\Downloads\cbDumper\cbDumper.py转换后修改了第15行的代码后的cbDumper.py的内容如下#This Python file use...
2018-10-10 13:40:17
277
原创 Python smtplib SMTPAuthenticationError: (334, 'UGFzc3dvcmQ6')
把这个路径>import smtplib>smtplib.__file__的文件内容替换成下面的,本解决方法来自于 https://bugs.python.org/issue27820 #! /usr/bin/env python3'''SMTP/ESMTP client class.This should follow RFC 821 (SMTP), ...
2018-09-13 14:07:32
5209
1
原创 日活统计,代码暂存 activeUserCountPerDay.activeUserCount
if isCreated: activeUserCountPerDay, isCreated = ActiveUserCountPerDay.objects.get_or_create(activeDate = date.today()) activeUsers=ActiveUser.objects.all()#算是昨天的用户集合 if is...
2018-09-10 22:54:12
285
转载 Python class variable、class method
A class variable is a variable associated with a class, not an instance of a class, and is accessible by all instances of the class. A class variable might be used to keep track of some classlevel in...
2018-09-08 19:14:13
975
原创 quick Django
创建project named mysite django-admin startproject mysite命令行进入项目目录运行服务器python manage.py runserver创建APP named polls python manage.py startapp pollsLet’s write the first view. Open the file po...
2018-09-08 17:40:44
154
原创 Linux锐捷登录
登录锐捷sudo chmod +x ./rjsupplicant.shsudo ./rjsupplicant.sh -a 1 -d 1 -n eth0 -u 2011118523119 -p zr732831sudo ./rjsupplicant.sh -a 1 -d 1 -n eth0 -u 2011118522126 -p 666333sudo ./rj
2017-04-20 20:12:10
1001
原创 UnboundLocalError: local variable 'pi' referenced
In Python, variables that are only referenced inside a function are implicitly global. If a variable is assigned a value anywhere within the function’s body(即便没用到), it’s assumed to be a local unless e
2017-04-09 14:00:46
516
原创 url match
videoUrlMatch = re.search(r"Real URLs:\s*(?P.*){}".format(os.linesep), parseResult, re.DOTALL | re.IGNORECASE).group('videoUrls').split() # 搜寻链接,因为有了download-url:,所以必须从Real URLs:后面搜寻 # pr
2017-04-06 22:01:14
1317
原创 qq解析代码碎片
def qqVipParse(url): # don't use 'lxml', By default, lxml's parser will strip CDATA sections from the tree and # replace them by their plain text content., more https://groups.google.com/for
2017-02-09 13:59:25
2689
原创 json里读取电视源
import jsono = json.loads(open(r'C:\Users\i\Documents\Tencent Files\2281570025\FileRecv\1485152268490.json').read())for i in o["ChannelList"]: print('{},{}'.format(i["Name"], i["Media"][0
2017-01-24 18:34:07
6955
翻译 InnoSetup比NSS好用,下面是一些碎片记录
LYYDownloader5.2iMath, Inc.http://mathjoy.lofter.com/post/42208d_7cabd00E:\自动备份盘\编程\Python\Project\LYYDownloader-qt5\icon256.icoLYYDownloader5_Setup.exe去选English,勾选SimpleChinese
2017-01-03 19:45:48
1011
原创 代码碎片记录
print('--------talkShowCNParse')self.talkShowCNParse(QUrl(sourceUrl).adjusted(QUrl.RemoveQuery).toString()) @pyqtSlot() def talkShowCNParse(self, url): if url not in self.sou
2016-12-29 12:10:11
470
原创 文章标题
每一个实数都能用有理数去逼近到任意精确的程度,这就是有理数的稠密性。The rational points are dense on the number axis. [图片][图片][图片][图片]
2016-10-09 15:50:13
459
原创 什么都不能做的代码记录
from ctypes import *from win32gui import *from win32process import *from win32api import *from win32con import *import win32clipboarddef paste(): win32clipboard.OpenClipboard() data =
2015-11-07 10:49:24
642
英酷词典EngkuDict-installer.exe
2024-02-10
pyqt-model-view-framework-overview.pdf
2013-04-21
Introduction to Python Programming and Developing GUI Applications with PyQT
2012-10-17
PySide 1.1.0 documentation
2012-09-21
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅