用python处理时间、utf8文本、正则匹配、序列化、目录路径搜索、xml解析
2013-05-02 16:06
621 查看
python 处理时间
CentOS升级python到2.7版本
/article/3470276.html
How to Use UTF-8 with Python
http://www.evanjones.ca/python-utf8.html
python 读取并显示 UTF-8 中文文本
/article/5543713.html
Python中文全攻略
http://www.sqlite.com.cn/MySqlite/11/395.Html
用多个分隔符正则匹配分割字符串
http://bbs.chinaunix.net/thread-1821763-1-1.html
python 正则匹配中文
http://www.blogjava.net/Skynet/archive/2009/05/02/268628.html
序列化Python对象
http://woodpecker.org.cn/diveintopython3/serializing.html
python 处理os路径
python os.path模块学习
http://www.redicecn.com/html/Python/20110507/273.html
python 解析xml
https://docs.python.org/2/library/xml.etree.elementtree.html#module-xml.etree.ElementTree
import time import re now = time.strftime("%Y-%m-%d %H:%M:%S", time.gmtime()) timeobj = re.match(r'(.*)-(.*)-(.*) (.*):(.*):(.*)', now) if timeobj is not None: timestamp = time.mktime(time.strptime(now, "%Y-%m-%d %H:%M:%S")) date = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(timestamp))
CentOS升级python到2.7版本
/article/3470276.html
How to Use UTF-8 with Python
http://www.evanjones.ca/python-utf8.html
python 读取并显示 UTF-8 中文文本
/article/5543713.html
Python中文全攻略
http://www.sqlite.com.cn/MySqlite/11/395.Html
用多个分隔符正则匹配分割字符串
http://bbs.chinaunix.net/thread-1821763-1-1.html
python 正则匹配中文
http://www.blogjava.net/Skynet/archive/2009/05/02/268628.html
序列化Python对象
http://woodpecker.org.cn/diveintopython3/serializing.html
python 处理os路径
import sys import os if not os.path.exists('./directory/'): os.makedirs('./directory/') f = open('./directory/file', 'a') f.write('text\n') f.close()
python os.path模块学习
http://www.redicecn.com/html/Python/20110507/273.html
python 解析xml
https://docs.python.org/2/library/xml.etree.elementtree.html#module-xml.etree.ElementTree
相关文章推荐
- c++导入python模块,如果python脚本与exe不在同一目录,需要增加搜索路径
- PHP扩展之文本处理(二)——PCRE正则表达式语法6——字符类(方括号)和可选路径(|)
- Java正则匹配解析出时间
- python pd.crosstab在处理时间序列文本数据的用处
- .NET读取所有目录下文件正则匹配文本电子邮件
- 00python正则表达式的搜索和匹配
- protobuf,xml,json序列化后与解析时间的对比
- python汉语正则处理和文本读写
- 使用python实现正则匹配检索远端FTP目录下的文件
- python文件处理:解析.xml文件
- [Python正则表达式] 字符串中xml标签的匹配
- 【脚本语言系列】关于Python文本解析XML,你需要知道的事
- Python搜索目录下指定的文件,并返回绝对路径(包括子目录)
- PHP之文件系统处理_解析目录路径
- python 文本解析 XML基础
- Python 正则表达式匹配字符串中的日期和时间
- java正则匹配解析出时间
- python正则表达式与文本匹配
- 【语言处理与Python】3.7用正则表达式为文本分词