Python 程序:分离三位数的个位、十位、百位
number = input('请输入一个三位自然数:') a = int(number[0]) b = int(number[1]) c = int(number[2]) print(a, b, c)
原文地址: https://www.cveoy.top/t/topic/o0eq 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
number = input('请输入一个三位自然数:') a = int(number[0]) b = int(number[1]) c = int(number[2]) print(a, b, c)
原文地址: https://www.cveoy.top/t/topic/o0eq 著作权归作者所有。请勿转载和采集!