- 博客(4)
- 资源 (3)
- 问答 (2)
- 收藏
- 关注
原创 定义类,GM工具脚本
# -*- coding: cp936 -*-import urllibimport urllib2import time__metaclass__=typeclass CheckItem: def __init__(self): self.dic={} filename = raw_input('输入物品名称表:') + '.txt'
2014-06-27 15:12:39 854
原创 读取文本中内容,字符串加工生成字典,查询对于合成道具成本价格
# -*- coding: cp936 -*-filename=r'物品价格表.txt'with open(filename,'r') as f: lines = f.readlines()dic={}for line in lines: if line=='\n': break temp = line.strip('\n').split('\t') s=
2014-06-14 14:00:21 495
原创 python读取文件中的序列,将字符串形式序列转化并求值(eval)
filename=r'C:\Users\Administrator\Desktop\613\123.txt'with open(filename,'r') as f: lines = f.readlines()count1=count2=count3=0for line in lines: temp = line.strip('\n') l=eval(temp)
2014-06-13 14:13:26 1120
原创 读取文档中内容,网站提交
# -*- coding: cp936 -*-import urllibimport urllib2import timeurl = "http://xxx.xxx.xxx.xxx/cgi-bin/addaward"UUID = '100042'with open('球员.txt','r') as f: lines = f.readlines()for line in
2014-06-05 13:35:32 691
HTMLTestRunner.py
2016-05-26
使用seek方式创建的文件,为什么默认打开编码是ANSI?
2019-05-23
xpath如何选择不包含特定子节点的节点?
2019-01-02
TA创建的收藏夹 TA关注的收藏夹
TA关注的人