输入一个整数输出该数是奇数还是偶数 python
num = int(input("请输入一个整数:")) if num % 2 == 0: print(num, "是偶数") else: print(num, "是奇数")
原文地址: https://www.cveoy.top/t/topic/hfeD 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
num = int(input("请输入一个整数:")) if num % 2 == 0: print(num, "是偶数") else: print(num, "是奇数")
原文地址: https://www.cveoy.top/t/topic/hfeD 著作权归作者所有。请勿转载和采集!