Ai
1 Star 0 Fork 147

夏国秦/geekbangpython

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
time_test.py 323 Bytes
Copy Edit Raw Blame History
wilson_yin authored 2018-05-28 16:33 +08:00 . exercise & timegeekbang.com
import time
# print(time.time())
# print(time.localtime())
# print(time.strftime('%Y%m%d'))
import datetime
print(datetime.datetime.now())
newtime = datetime.timedelta(minutes=10)
print(datetime.datetime.now()+ newtime)
one_day=datetime.datetime(2008,5,27)
new_date=datetime.timedelta(days=10)
print( one_day + new_date)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/guoqinx/geekbangpython.git
git@gitee.com:guoqinx/geekbangpython.git
guoqinx
geekbangpython
geekbangpython
master

Search