摘要: python时间表示 python中时间表示法主要有: 1.时间戳 2.格式化字符串时间 3.元组结构体时间 1.时间戳 import time print("从1970年1月1日00:00:00开始按秒计算的偏移量") print("时间戳为:%s" % t... 阅读全文
posted @ 2015-11-10 07:58 轮子手 阅读(477) 评论(0) 推荐(0) 编辑
摘要: 单行注释 [[ [多行注释] ]] 1. 变量 & 控制流 num = 23 数字都是双精度str = 'aspythonstring' 像 Python 一样不可变str = "aspythonuse" 可以双引号str = [[ 像 Python 的多行注释可用于 表示多行字符串一样 方便... 阅读全文
posted @ 2015-11-10 07:21 轮子手 阅读(351) 评论(0) 推荐(0) 编辑