Commit abc5cfdd by BellCodeEditor

save project

parent c81153ad
Showing with 12 additions and 7 deletions
a1 = input("指挥认罪吗?") a1 = input("指挥认罪吗?")
a2 = input("斯基认罪吗?") a2 = input("斯基认罪吗?")
if a1 == '认罪' and a2 == '认罪': list=["认罪","不认"]
print("都判十年") if a1 in list and a2 in list:
elif a1 == '不认' and a2 == '认罪':
print("指挥1年,斯基20年") if a1 == '认罪' and a2 == '认罪':
elif a1 == '认罪' and a2 =='不认': print("都判十年")
print("指挥20年,斯基1年") elif a1 == '不认' and a2 == '认罪':
print("指挥20年,斯基2年")
elif a1 == '认罪' and a2 =='不认':
print("指挥2年,斯基20年")
else:
print("都判3年")
else: else:
print("都判3年") print("输入不合法")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment