函数-datetime

import datetime
def welcome(name):
msg='欢迎登陆【%s】,今天的日期是【%s】'%(name,datetime.date.today())
print(msg)
welcome("hahah")

猜你喜欢

转载自www.cnblogs.com/pengwa1226/p/9434027.html