py基础

读入

# 字符串
s = input()
# 整数
n = int(input())
# 一行整数转换成列表
a = list(map(int,input().split())

深拷贝,然后降序排序,注意 True T大写

b = a[:]
a.sort(reverse = True)

字典用法
in 判断有无

mp = {}
if 'a' not in mp:
    f = True
github