摘要:
# coding=utf-8"""请输入10个数,并安从小到大的顺序排序"""num = []def getTenNum(): for i in range(10): x = int(input("please input the num:")) num.append(x)def sortNum(n 阅读全文
摘要:
# coding=utf-8"""输出指定区间的素数"""num = []lower = int(input("please input the low num"))higher = int(input("please input the high num"))def ifSuNum(n): if 阅读全文
摘要:
# coding=utf-8"""判断输入的数字是不是回文数"""num = int(input("请输入一个数字!"))nums = str(num)lenth = len(nums)flag = Truedef ifHuiwenNum(n, k): global flag for i in ra 阅读全文
摘要:
# coding=utf-8"""题目:利用递归函数调用方式,将所输入的5个字符,以相反顺序打印出来"""charNum = []def getChar(): for i in range(5): x = input("请输入字符") charNum.append(x)def outPut(num, 阅读全文