3.11-3.13 PAT1033 乙级 python

旧键盘打字

m=input()
n=input()
str1=''
for i in n:
    if i>='a' and i<='z':
        s=i.upper()
    else:
        s=i
    if s not in m:
        if '+' not in m or (i<'A' or i>'Z'):
            str1+=i
print(str1)

woc 今天晚上。。最后半个小时。。大脑被影响。。就去网上抄答案了。TvT

代码来源 https://www.cnblogs.com/hexia7935/p/10224288.html

猜你喜欢

转载自blog.csdn.net/qq_39782006/article/details/88540936