浙江省高校计算机等级考试二级Python 程序设计题17——判断考场|2023备考

笔记整理自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

猜你喜欢

转载自blog.csdn.net/Raider1/article/details/129968676
今日推荐