CERT_EXPIRES = '2018-07-01'
# 检查过期时间
def check_cert():
today = datetime.now().strftime('%Y-%m-%d')
if today >= CERT_EXPIRES:
print('This xxx.py is expired. Please download a newer version.')
exit(1)
CERT_EXPIRES = '2018-07-01'
# 检查过期时间
def check_cert():
today = datetime.now().strftime('%Y-%m-%d')
if today >= CERT_EXPIRES:
print('This xxx.py is expired. Please download a newer version.')
exit(1)
本文标题:检查过期时间
本文链接:https://www.haomeiwen.com/subject/jlipeftx.html
网友评论