题解 | #字符串字符匹配#

字符串字符匹配

http://www.nowcoder.com/practice/22fdeb9610ef426f9505e3ab60164c93

while True: try: n_str= input() temp = input() count =0 for ele in n_str: if ele in temp: count +=1 else: pass except: break else: if count == len(n_str): print("true") else: print("false")

全部评论

相关推荐

评论
点赞
收藏
分享
牛客网
牛客企业服务