I'm perplexing to do a relating controlling python.I have a list of twine
(len~3000), and a file, and we wish to check if for any line in a file, it
has during slightest one of a strings in a list.The many loyal
disrespectful proceed is to check one by one, though it takes time (not
that prolonged though).Is there a proceed that we can hunt that faster?For
example:list = ["aq", "bs", "ce"]if a line is "aqwerqwerqwer" -> loyal
(since has "aq" in it)if a line is "qweqweqwe" -> fake (has zero of "aq",
"bs" or "ce")
No comments:
Post a Comment