码迷,mamicode.com
首页 > 其他好文 > 详细

瞎jb操作

时间:2018-11-10 10:51:14      阅读:281      评论:0      收藏:0      [点我收藏+]

标签:pil   form   lin   OLE   english   some   beauty   mat   drag   

import re
def test(teststr, *args):
#strformatter = "%s"
myargs = args[0]
if len(args) > 1:
for i in args[1:]:
myargs += ‘|‘ + str(i)
#strformatter += "|%s"
#regex = "\"" + strformatter + "\"" + " % " + "(" + myargs + ")"
regex = "myargs"
print(regex)

#print(re.findall(regex, teststr))
print(re.findall(regex, s))


s = "chinese,translated,censored,nanao,sole_male,beauty_mark,blowjob,kimono,milf,sole_female,td_full_color"
#t1 = re.compile(‘milf‘, re.S)
regex = "%s|%s|%s" % (‘chinese‘, ‘milf‘, ‘sdfjsdfsdf‘)
print(regex)
print(len(re.findall(regex, s)))
#test(s, "chinese", "milf")



import re


def test(teststr, *args):
length = len(args)
regex = args[0]
if len(args) > 1:
for i in args[1:]:
regex += ‘|‘ + str(i)
print(regex)
print(re.findall(regex, teststr))
if len(re.findall(regex, teststr)) == length:
print("ok")



s = "chinese,translated,censored,nanao,sole_male,beauty_mark,blowjob,kimono,milf,sole_female,td_full_color"
test(s, "chinese", "milf", "nanao")



import re



def test(teststr, *args):
length = len(args)
regex = args[0]
if len(args) > 1:
for i in args[1:]:
regex += ‘|‘ + str(i)
print(regex)
print(re.findall(regex, teststr))
re2 = re.findall(regex, teststr)
print(re2)
re2 = sorted(set(re2), key=re2.index)
print(re2)
if len(re2) == length:
list2.append(num)



s = "english,dragon_ball_z,cell,bisexual,blowjob,insect_boy,selfcest,anal,beauty_mark,blood,blowjob,cunnilingus,dark_skin,double_blowjob,double_penetration,piercing,sole_female,td_full_color,td_group,td_mmf_threesome"
test2 = "chinese,milf,blowjob"
test5 = test2.split(",")
print(test5)
test(s, *test5)
#test(s, "chinese", "milf", "nanao")

瞎jb操作

标签:pil   form   lin   OLE   english   some   beauty   mat   drag   

原文地址:https://www.cnblogs.com/cerutodog/p/9938094.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!