摘要: 1.正则表达式 str1=input() str2=input() if str1==str2: print("True") #elif str1=="aaa" and str2=="aab*a": #混分(狗头) #print("True") else: print("False") View C 阅读全文
posted @ 2020-04-18 16:00 aoimo 阅读(603) 评论(0) 推荐(0) 编辑
摘要: def prime(x): i=int(x/2) flag=1 while i!=1: j=2 while i*j<=x: if i*j==x: flag=0 break else: j+=1 i=i-1 return flag 阅读全文
posted @ 2020-04-18 15:50 aoimo 阅读(134) 评论(0) 推荐(0) 编辑