题解 | #判断字母#
判断字母
http://www.nowcoder.com/practice/44d2d63103664913bc243d3836b4f341
- 本题解题的关键:判断字符串是不是字母:字符串.alpha()
lines=[] while True: try: lines.append(input()) except: break for i in lines: if i.isalpha(): print("YES") else: print("NO")
判断字母
http://www.nowcoder.com/practice/44d2d63103664913bc243d3836b4f341
lines=[] while True: try: lines.append(input()) except: break for i in lines: if i.isalpha(): print("YES") else: print("NO")
相关推荐