🌈 搜索
📅  最后修改于: 2022-03-11 14:45:20.267000             🧑  作者: Mango
>>> s = 'abcdefgABCDEFGHIJKLMNOP' >>> ''.join([c for c in s if c.isupper()]) 'ABCDEFGHIJKLMNOP'