随笔分类 - python
摘要:1、类型转换 str="['test']" listobj=eval(str) str="{'test':1}" dictob=eval(str) 2、获取字符串名称储存的对象 obj_str=xxobject eval('objec_str')
阅读全文
摘要:session = requests.session()
阅读全文
摘要:def hashCode(value): h=0 if h == 0 or len(value) > 0: for i in range(0,len(value)): h = 31*h + int(value[i]); return h
阅读全文
摘要:pyuic4 -o E:\workspce\PyQtUI\lrxml_mainui.py E:\workspce\QtUI\lrxml.ui
阅读全文
摘要:1 import re 2 3 from lxml import etree 4 5 def indent(elem, level=0): 6 i = "\n" + level*"\t" 7 if len(elem): 8 if not elem.text or...
阅读全文

浙公网安备 33010602011771号