12 2018 档案

摘要:1 """ 2 类的实例化,类和对象的数据(函数)增删改查 3 """ 4 class people: 5 """ 6 人的类 7 """ 8 def __init__(self,name,age,food): 9 self.name = name 10 self.age = age 11 self... 阅读全文
posted @ 2018-12-20 21:16 ailadi 阅读(105) 评论(0) 推荐(0)
摘要:1.time模块 1 import time 2 #时间戳 3 print(time.time()) 4 #时间结构 5 print(time.localtime())#本地时间 6 print(time.gmtime())#世界时间 7 #字符串时间 8 print(time.asctime()) 阅读全文
posted @ 2018-12-06 17:35 ailadi 阅读(220) 评论(0) 推荐(0)