`
wjm251
  • 浏览: 108753 次
  • 性别: Icon_minigender_1
  • 来自: 沈阳
社区版块
存档分类
最新评论
文章列表
time模块各对象转换 其中time.strftime( 格式字符串, 时间对象 )# str format time-->返回时间字符串time.strptime(时间字符串, 格式字符串)# str parse time-->返回时间对象其中的格式字符串是规定好的,比如%y代表两位数的年份,%Y代表四位数的年份,具体更详细含义可见http://docs.python.org/library/time.html#time.struct_time例子time.strftime( "%a, %d %b %Y %H:%M:%S +0000", time.localt ...
买手机的时候新鲜随便玩一下,呵呵,
python的str,unicode对象的encode和decode方法 python中的str对象其实就是"8-bit string" ,字节字符串,本质上类似java中的byte[]。 而python中的unicode对象应该才是等同于java中的String对象,或本质上是java的char[]。 对于 s="你好" ...
python 操作ms office 生成报告相关总结 I. 项目中需要生成word和excel报告,通常有两种方法:基于字符串拼接以及COM调用。 1) 字符串拼接生成office文档的原理: office文档本身可以体现为xml文件格式,尤其是MS Excel 2003,我们可以自 ...
写出来贴在这留个纪念,没看过class规范看着是比较抽象,,也没写注释,sorry import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; public class ParseClassFile {     static class CLASS_ACC{         public final static int ACC_PUBLIC = 0x0001;//class&interface         ...
Global site tag (gtag.js) - Google Analytics