我正在尝试为我在 python 中的输入定义限制:
hp_cur=int(input("Enter the current number of HP (1-75): "))
hp_max= int(input("Enter the maximum number of HP (1-75): "))
hp_dif=(hp_max-hp_cur)
我想将 hp-cur 的输入限制为 1-75 并且都限制 hp-max 输入并确保输入大于 hp-cur 输入。
慕无忌1623718
拉丁的传说
精慕HU
随时随地看视频慕课网APP
相关分类