笔记整理自B站UPWLB工作生活两不误的个人空间-WLB工作生活两不误个人主页-哔哩哔哩视频教程Python 程序设计题17_哔哩哔哩_bilibili
程序设计题17
Python代码
xh = input()
mowei = int(xh[-1])
#或者
#mowei = xh[len(xh) - 1]
if mowei % 2 == 1:
print('考场A')
else:
print('考场B')
输入样例
20201822
输出样例
考场B