import json
filename = 'numbers.json'
try:
with open(filename) as f_obj:
username = json.load(f_obj)
except FileNotFoundError:
username = input('存储输入的数据')
with open(filename,'w') as f_obj:
json.dump(username,f_obj)
else:
print('Welcome back',username)