今天学习Python,期间需要使用到Switch…Case,下意识的写了一下,发现竟然不支持,在网上搜索了一下找到了替代的办法使用字典来模拟Switch…Case print(‘模拟switc’) def taskForSunday(): print(“今天休息”) def taskForRest(): print(“今天休息”) def taskForChinese(): print(“今天上语文课”) def taskForMath(): print(“今天上数学课”) def taskForEnglish(): print(“今天上英语课”) def taskForDefault(): print(“输入错误啦。。。。”) switchDic = {“Sunday”:taskForRest, “Monday”:taskForChinese, “Tuesday”:taskForMath, “Wednesday”:taskForEnglish, “Tursday”:taskForEnglish, “Friday”:taskForEnglish, “Saturday”:task…