Merge pull request #14 from BailPlus/main

修复Python主版本号判断时潜在的问题
This commit is contained in:
gfdgd xi
2022-11-22 18:58:59 +08:00
committed by GitHub

View File

@@ -44,7 +44,7 @@ def PythonLower():
# Python 版本检测,因为 f-string 格式化要至少 Python 3.6 及以上的版本,所以需要检测
# 判断主版本号
if sys.version_info[0] > 3:
if sys.version_info[0] < 3:
PythonLower()
if sys.version_info[1] < 6:
PythonLower()