python自动化之路-day02
# 判断用户是不是第一次输入工资,ps:检查存放用户工资的文件是否存在,如果在的话就取出来。
if os.path.exists("salary.json") is True:
SalaryFile = open("Salary.json", encoding='utf-8')
Salary = json.load(SalaryFile)
posted on 2017-04-13 00:11 linux-paul 阅读(76) 评论(0) 编辑 收藏 举报
# 判断用户是不是第一次输入工资,ps:检查存放用户工资的文件是否存在,如果在的话就取出来。
if os.path.exists("salary.json") is True:
SalaryFile = open("Salary.json", encoding='utf-8')
Salary = json.load(SalaryFile)
posted on 2017-04-13 00:11 linux-paul 阅读(76) 评论(0) 编辑 收藏 举报