4 odpowiedzi
+ 4
It depends.
datetime is the root module and also a child.
If u only need the functions of child then use first variant.
If u need further things like timezone use 2nd variant.
+ 3
I prefer you use
from datetime import datetime
because this import only datetime file from datetime not all files
and this method help to fast way to execute your files
+ 2
You can go on with Oma Falk answer otherwise you can try this.
from datetime import *
This '*' refers to all
0
Thank you, guys.. Really appreciate it