我在8.1.8. strftime() and strptime() Behavior中看到
datetime.strptime(date_string, format) is equivalent to
datetime(*(time.strptime(date_string, format)[0:6]))
不知道字符'*'在表达式中的用途。
...全文
1542打赏收藏
print(*(time.localtime()))中字符‘*’起什么作用?
我在8.1.8. strftime() and strptime() Behavior中看到 datetime.strptime(date_string, format) is equivalent to datetime(*(time.strptime(date_string, format)[0:6])) 不知道字符'*'在表达式中的用途。