猫史档案馆


我用PYTHON做的一个解释性操作系统,有点bug,希望大佬帮我改改.

用户:楊輄_FixedStar楊輄_FixedStar查看:0 回复:0 评论:0 创建时间:2024-05-19T21:10:48


defwelcome(): print("########","###","#####","####") print("####","###","##","##") print("####","###","##","#") print("######","###########","##","####") print("####","##","##","#") print("###","##","##","#") print("###","###","##","##") print("#####","####","#####","####") welcome() defhelp(): tlk=input("ChineseorEnglish?") iftlk=='Chinese': print("======帮助======") print("好的,帮助已切换成中文!") print("System_Info-----系统信息") print("Sc-----进行简单的两数加法计算") print("menu-----系统菜单") print("settings-----系统设置") eliftlk=='English': print("======help======") print("OK,helphasbeenswitchedtoEnglish!") print("System_Info-----SystemInfor喵") print("Sc-----performsasimpletwo-numberadditioncalculation") print("menu-----systemmenu") print("settings-----systemsettings") else: print("======help======") print("Unknownlanguage,automaticallyswitchedtoEnglish.") print("System_Info-----SystemInfor喵") print("Sc-----performsasimpletwo-numberadditioncalculation") print("menu-----systemmenu") print("settings-----systemsettings") defSystem_Info(): print("Thisversionisbeta1.0.0andwillbecontinuouslyupdated.") print("BasedonPython,itisessentiallyaparsingoperatingsystem,andiscompletelyopensource!") print("https://space.bilibili.com/1359062377?spm_id_from=333.337.0.0") print("Havefunwithit!") defsetting(): print("1.systemsetting") print("2.passwordsetting") tel=input("Pleaseenteranumbertoselect(1or2):") iftel==1: print("=====setting======") print("None") iftel==2: print("=====passwordsetting=====") print("None") defSc(): a=float(input()) b=float(input()) print(a+b) tll='0' defmenu(): print("1.off") print("2.reprovision") tll=input("Pleaseenteranumbertoselect(1or2):") iftll=='1': print("None") iftll=='2': print("None") name=input("用户名:") print("欢迎你!",name,"!") print("welcometosunbeamOS!") print("Youcanuse'*help'toviewthehelp.") print("Thisversionisbeta1.0.0andwillbecontinuouslyupdated.") print("BasedonPython,itisessentiallyaparsingoperatingsystem,andiscompletelyopensource!") print("https://space.bilibili.com/1359062377?spm_id_from=333.337.0.0") print("Havefunwithit!") defSyntaxError_(): print("!!!Thisisnotanexecutablesyntax,pleasetryagain!!!") deftalk_(): talk=input() iftalk=='*help': help() iftalk=='System_Info': System_Info() iftalk=='Sc': Sc() iftalk=='setting': setting() iftalk=='menu': menu() else: SyntaxError_() whileTrue: talk_() imgsrc="http://img.t喵t4/appstyle/expression/ext/normal/af/cry.gif"alt="emotion_衰"求大佬指点!


回复

上一页1 页 / 共 0下一页