first commit
This commit is contained in:
commit
ba848e218d
1001 changed files with 152333 additions and 0 deletions
12
Python/现在的时间.py
Normal file
12
Python/现在的时间.py
Normal file
|
@ -0,0 +1,12 @@
|
|||
import datetime
|
||||
|
||||
def getnow():
|
||||
now = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")
|
||||
return now
|
||||
|
||||
# ——————————————————————————————————————————————————————————————————————————————
|
||||
import time
|
||||
|
||||
def getnow():
|
||||
now = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
|
||||
return now
|
Loading…
Add table
Add a link
Reference in a new issue