temp=1
while temp:
print("-------地址换算过程-------")
print("1.分页式地址换算")
print("2.分段式地址换算")
print("3.段页式地址换算")
print("4.结束运行")
print("------------------------")
print("请输入您的选择:")
temp=input()
if temp==1:
pass
elif temp==2:
pass
elif temp==3:
pass
elif temp==4:
break
print("程序结束")
Python
或者直接用汉字一二代替,就不用加int转换😜