02 2017 档案
摘要:* ```function``` ``` def modify_time(time_str): ''' set time of kwargs :param time_str: like '2017-02-16' :return: dict ''' kwargs = {'earliest_time':'', \ 'lat...
阅读全文
摘要:=== 下载(Download): 1 2 item1 item2 点击 "状态页" 下方的【诊断信息】按钮,如没有这个按钮,请将显示详细信息从【OFF】改为【ON】。 underline "baidu.com" This is [baidu][1] [1]:http://www.baidu.com
阅读全文
摘要:下载离线包 或者
阅读全文
摘要:import linecache def eachlineof(filename): with open(filename, 'r') as f: for cnt, line in enumerate(f): a = str(cnt) + ',' + line.strip('\n') yield a
阅读全文
摘要:python内置的方法,太简单了。。。 from datetime import datetime,timedelta d = datetime.now() z = d + timedelta(days= 7) print str(z).split(' ')[0].split(' ')[1] imp
阅读全文
摘要:把 转换成 C:\Python27\Lib\site packages\PyQt4\uic\pyuic.py o t.py t.ui 使用ui布局
阅读全文
摘要:coding:utf 8 import sys from PyQt4.QtGui import (QApplication, QWidget, QPushButton, QLineEdit, QHBoxLayout, QVBoxLayout, QColorDialog, QInputDialog,
阅读全文
摘要:首先新建一个 .qrc 文件,内容格式如下: in the Terminal: inner_image.py
阅读全文
摘要:qt安装包地址 http://download.qt.io/archive/qt/5.8/5.8.0/ pyqt4 64 http://www.cnblogs.com/zouzf/p/4308912.html pyqt tutorial http://zetcode.com/gui/pyqt4/me
阅读全文
摘要:''' integer 1,100, 8080,0 0xff00,0xa5b4c3a2 float 1.23,3.14, 9.01 1.23x109 = 1.23e9 string 'abc' "xyz" 'I\'m \"OK\"!' = I\'m "OK"! ''' '''I'm "OK"!'''
阅读全文
摘要:coding:utf 8 class _SingletonWrapper: """ A singleton wrapper class. Its instances would be created for each decorated class. """ def __init__(self, c
阅读全文
摘要:①cmd下输入python某些时候需要指向python2,某些时候需要指向python3(比如我,用sqlmap的时候需要python2,自己会用的是python3),这时候只需要改变一下Path下python2和python3路径的位置即可,如上我的路径填的是"E:\Python34\;E:\Py
阅读全文
摘要:git reset hard (版本回退) git checkout b dev(新建分支并切换到dev分支) git merge dev(在master上面合并dev) git tag v1.0(和commit绑定,识别性更好) git stash(临时保存工作区的改动) git stash ap
阅读全文
摘要:$ rm rf .git $ git config gobal core.autocrlf false
阅读全文

浙公网安备 33010602011771号