Fra*_*fka 2 python time
鉴于此代码:
from datetime import datetime Time = datetime.now() print(Time)
我怎么才打印最后一位数字?例如.
2013-02-08 15:13:32.150263打印3 2013-02-08 15:17:40.759672打印2
mgi*_*son 5
print str(Time)[-1] 会做的伎俩......
print str(Time)[-1]
归档时间:
12 年,10 月 前
查看次数:
81 次
最近记录: