python编程从入门到实践练习10-12:记住喜欢的数 import json def get_f_number(): '''如果存储了喜欢的数字,就获取它''' filename = 'favorite_number.json' try: with open(filename) as f: favorite_number