# 答案 ''' 数学类型 abs(a) : 求取绝对值。abs(-1) max(list) : 求取list最大值。max([1,2,3]) min(list) : 求取list最小值。min([1,2,3]) sum(list) : 求取list元素的和。 sum([1,2,3]) >>> 6 Read More
代码: def perm(s=''): if len(s) <= 1: return [s] sl = [] for i in range(len(s)): for j in perm(s[0:i] + s[i + 1:]): sl.append(s[i] + j) return sl def ma Read More
print(1 == True) print(-1 < (2 == 2)) print(1 < (2 == 2)) print(1 < 2 > 1 == True) print(0 == False) print(2 == True) print(2 == False) # 结果 True True Read More