'''msg='hello egon 666'
for i in msg:
print(i)'''
'''msg = 'hello egon 666'
i = 0
while i<len(msg):
print(msg[i])
i+=1'''
'''msg='hello alex'
print(msg.replace('alex','SB'))'''
'''msg='/etc/a.txt|365|get'
print(msg.split('/'))'''
'''tag = True
while tag:
cmd = input("请输入: ")
if len(cmd) != 0:
tag = False
else:
continue'''
'''tag = True
while tag:
real_name = input("请输入您的用户名: ")
real_password = input("请输入您的密码: ")
if len(real_name) == 0 or real_name.isdigit():
continue
else:
tag = False'''
'''tag = True
while tag:
msg = input("请开始您的表演: ")
if msg.find("alex",0,4) == 0:
sen = "_SB"
print(msg+sen)
else:
tag = False'''
tag =
True
while tag:
name = input(
"请输入您的用户名: ")
password = input(
"请输入您的密码: ")
work_month = input(
"请输入您工作了几个月: ")
salary = input(
"请输入您每月的工资: ")
if len(name) ==
0 or len(password) ==
0:
continue
elif work_month.isdigit()
and salary.isdigit():
print(
"小子,你认证成功了")
while tag:
print(
"本系统有以下功能")
print(
"1.查询总工资")
print(
"2.查询用户身份")
options = int(input(
"输入 1 查询总工资,输入 2 查询用户身份"))
if options ==
1:
x = int(work_month)
y = int(salary)
print(x*y)
print(
"退出本系统请输入 3")
print(
"输入任意键返回上一层")
options1 = int(input(
"command========>"))
if options1 ==
3:
tag =
False
elif options ==
2:
if name ==
"alex":
print(
"super user")
elif name ==
"wupeiqi" or name ==
"yuanhao":
print(
"normal user")
else:
print(
"unkown user")
print(
"退出本系统请输入 3")
print(
"输入任意键返回上一层")
options2 = int(input(
"command========>"))
if options2 ==
3:
tag =
False
else:
continue
转载请注明原文地址: https://www.6miu.com/read-54947.html