题解列表

筛选

敲七游戏-题解(Python代码)

摘要:```python num = int(input()) count = 0 for i in range(2, num + 1): # 如果i能被7整除,则count+1并跳过本次循环……

数列排序-题解(Python代码)

摘要:```python num = int(input()) while num > 0: ipt = input().split() # 创建列表list1,用于存放排序后的元素 ……

排列-题解(Python代码)

摘要:```python import itertools count = int(input()) while count > 0: ipt = input() # 每个数字之间有一个……

字符排列问题-题解(Python代码)

摘要:全排列的算法自己想了很久都没有想出来,所以就搜索了一下具体实现。原来python只要导入包就可以实现。 抽时间还是理解一下具体实现方法 ```python # 导入相关包 import i……

密码截获 (Python代码)

摘要:```python # 判断一个字符串是否为回文 def func(str1): length = len(str1) str2 = "" for i in rang……