def load():
with open("random_number_highscores.txt","r") as x:
print ("HIGHSCORES")
print ("Least guesses made.")
print (json.load(x))
time.sleep(1)
def save(a):
with open("random_number_highscores.txt", "a") as x:
json.dump(a, x)
print ("saved.")
time.sleep(1)
为什么 def load 不起作用。我试过用 json.dump(str(a), x) 保存,但它也不起作用,只是得到错误