脚本: 运行(出现好几种情况,这是其中一个): 笔记: 这个习题做的是一个互动性的小游戏,使用了 if 嵌套。input 输入的是字符型。故后面 if door == “1”, 而不是 if door == 1。.