Python program to display current date and time
Link to all related video in the playlist "Python quick and dirty sample source code"
https://dailymotion.com/playlist/x74cx0
source code
import datetime
now = datetime.datetime.now()
print('current time')
print(now.strftime('%Y-%m-%d %H-%M-%S'))
Bình luận