自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

cnblogs.com/iMath

https://www.cnblogs.com/iMath

  • 博客(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

原创 https://mathjoy.eu.org

开头只要没有http就不会获取末尾不带 /

2018-10-06 10:18:18 3341522

原创 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 class­level 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

英酷词典 主要功能: 碰到不会的单词?鼠标点击一下就可以看到释义——哪里不会点哪里,so easy! 集牛津、剑桥、柯林斯、韦氏、朗文等权威英语词典于一体,一键查询!也整合了百度、谷歌、DeepL翻译 允许添加mdx格式的词典 辅助你将查过的单词制成Anki卡片来记忆! 用法: 鼠标光标放在释义小窗口上就可以看到音标和发音小喇叭,在上面鼠标右键就可以跳转到单词的详细释义页面; 除了鼠标点击单词释义外,还可以把鼠标箭头放到单词上面,然后按一下键盘左下方的Alt键来释义,不想点的位置的单词就可以这么查,比如链接上面的单词; 有时候释义小窗口出不来或释义的单词不对,那么你可以把鼠标箭头在该单词上稍微移一下后点击或按Alt一次试试看,这是个小瑕疵,我会努力改进的。此外也可以通过双击或复制该单词的方式调出释义小窗口; 要结合Anki制作单词本或添加mdx格式的词典?点击查看详情 粘贴复制自PDF里的多行文字后,为了拼接各行的文字,通常需要自己手动去除行与行间的空格,然而在开着英酷词典的情况下你只用复制内容后在跳出来的小窗口上右键就可以在各个大窗口里复制到处理好的文本内容。

2024-02-10

pyqt-model-view-framework-overview.pdf

pyqt-model-view-framework-overview 作者:陳俊嘉 a.k.a CCC

2013-04-21

PyQt 4.9.4 Class Reference.chm

PyQt 4.9.4 Class Reference.chm

2012-10-19

Introduction to Python Programming and Developing GUI Applications with PyQT

Introduction to Python Programming and Developing GUI Applications with PyQT

2012-10-17

PySide 1.1.0 documentation

PySide 1.1.0 documentation 制作教程 http://redstone-cold.diandian.com/post/2012-09-21/40039455065

2012-09-21

Mathematica 7、8、9注册机

Mathematica 7、8、9注册机 超好用,激动人心!

2013-03-29

Sams.MySQL Crash Course.2005.chm

Sams.MySQL Crash Course.2005.chm

2013-04-21

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

TA关注的人

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