if __name__ == '__main__':print("定制手机套餐")print("")#定义电话时长:字典callTimeOptions={'1':'0分钟','2':'50分钟','3':'100分钟','4':'300分钟','5':'不限量'}callTimeInput=input("请输入电话时长的选择编号:")callTimeResult=callTimeOptions.get(callTimeInput)if callTimeResult is not None:print(f"你选择的时长为:{callTimeResult}")else:print("输入错误,请重新输入")#定义流量包databag={'1':'0M','2':'500M','3':'1G','4':'5G','5':'无限量'}bagInput=input("请输入流量包的选择编号:")databagResult=databag.get(bagInput)if databagResult:print(f"你选择的流量包是:{databagResult}")else:print("输入错误,请重新输入")#定于短信条数messageSelect={'1':'0条','2':'50条','3':'100条','4':'无限量'}messageInput=input("请输入短信条数的选择编号:")messageResult=messageSelect.get(messageInput)if messageResult:print(f"你选择的短信条数是:{messageResult}")else:print("输入错误,请重新输入")print(f"您的手机套餐定制成功:免费通话时长为:每月{callTimeResult},流量为:每月{databagResult},短信条数为:每月{messageResult}")