摘要: s = input()for c in s: if 'a' <= c <= 'z': print(chr(ord('z')-(ord(c)-ord('a'))),end='') elif 'A' <= c <= 'Z': print(chr(ord('Z')-(ord(c)-ord('A'))),e 阅读全文
posted @ 2021-09-14 14:37 饭果果 阅读(91) 评论(0) 推荐(0)
摘要: Str=input("")Left_bracket=0Left_bracket_Z=0Right_bracket_Z=0for i in Str: if i== '(': Left_bracket+=1 elif i== ')': if Left_bracket>0: Left_bracket-=1 阅读全文
posted @ 2021-09-14 14:32 饭果果 阅读(44) 评论(0) 推荐(0)
摘要: s = input()t = ""for c in s: if 'a' <= c <= 'z': t += chr( ord('a') + ((ord(c)-ord('a')) + 3 )%26 ) elif 'A'<=c<='Z': t += chr( ord('A') + ((ord(c)-or 阅读全文
posted @ 2021-09-14 14:21 饭果果 阅读(47) 评论(0) 推荐(0)
摘要: def ifHappy(n): if n==1: print(True) elif 1<n<10: print(False) else: value = str(n) num = 0 for i in range(len(value)): num += int(value[i])**2 ifHapp 阅读全文
posted @ 2021-09-14 14:18 饭果果 阅读(153) 评论(0) 推荐(0)