题解 | #IP地址#Python真是太优雅了
IP地址
https://www.nowcoder.com/practice/2359e23180194f99828f5cd9c764236a
while True: try: for num in map(int, input().split('.')): if num < 0 or num > 255: print('No!') break else: print('Yes!') except: break
IP地址
https://www.nowcoder.com/practice/2359e23180194f99828f5cd9c764236a
while True: try: for num in map(int, input().split('.')): if num < 0 or num > 255: print('No!') break else: print('Yes!') except: break
相关推荐