标签:
import sys def check_version(): v = sys.version_info if v.major == 3 and v.minor >= 4: return True print(‘Your current python is %d.%d. Please use Python 3.4.‘ % (v.major, v.minor)) return False if not check_version(): exit(1)
标签:
原文地址:http://www.cnblogs.com/jzm17173/p/5207320.html