py基础 发布时间 : 2026-04-01 10:07 读入 # 字符串 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