摘要:
一、time转换为datetime datetime.datetime.fromtimestamp(tm ) datetime.datetime.utcfromtimestamp(tm ) 二、datetime->time dt01.timestamp() dt01.timetuple() from 阅读全文
posted @ 2020-12-11 20:33
猫鱼故巷
阅读(707)
评论(0)
推荐(0)
摘要:
count count方法返回字符串包含多少个参数指定的字符创 strr = '我们今天不去上学,我们去踢足球' print(strr.count('我们')) // 2 # 调用字符串的count 方法,这里返回2, # 表示该字符串包含了两个 '我们' find find 方法 会在字符串中查找 阅读全文
posted @ 2020-12-11 19:24
猫鱼故巷
阅读(153)
评论(0)
推荐(0)