fork download
  1.  
Success #stdin #stdout 0.04s 9232KB
stdin
import os
import time

def clear():
    # 清屏
    os.system('cls' if os.name == 'nt' else 'clear')

def show_experiment():
    clear()
    print("===== 实验进度.exe =====")
    print("当前实验进度:未开始")
    print("记录:暂无数据")
    input("\n按回车返回主菜单")

def show_magic_book():
    clear()
    print("===== 神奇者书.exe =====")
    print("【第一章:起源】")
    print("【第二章:能力】")
    print("【第三章:规则】")
    print("【第四章:未知】")
    input("\n按回车返回主菜单")

def show_note():
    clear()
    print("===== 批注.exe =====")
    print("批注1:注意实验安全")
    print("批注2:记录关键数据")
    print("批注3:请勿外传")
    input("\n按回车返回主菜单")

def show_intro():
    clear()
    print("===== 介绍.exe =====")
    print("本程序用于管理实验、资料、批注与说明。")
    print("四个分区分别用于:")
    print("1. 查看实验进度")
    print("2. 查阅神奇者相关资料")
    print("3. 查看与添加批注")
    print("4. 了解程序用途")
    input("\n按回车返回主菜单")

def main():
    while True:
        clear()
        print("========================")
        print("      主程序启动器")
        print("========================")
        print("1. 实验进度.exe")
        print("2. 神奇者书.exe")
        print("3. 批注.exe")
        print("4. 介绍.exe")
        print("0. 退出程序")
        print("========================")

        choice = input("请输入选项编号:")

        if choice == '1':
            show_experiment()
        elif choice == '2':
            show_magic_book()
        elif choice == '3':
            show_note()
        elif choice == '4':
            show_intro()
        elif choice == '0':
            print("正在退出...")
            time.sleep(0.5)
            break
        else:
            print("输入无效,请重新选择")
            time.sleep(1)

if __name__ == "__main__":
    main()
stdout
Standard output is empty