current position:Home>python string judgment condition

python string judgment condition

2022-09-09 03:34:12CSDN Q&A

str = a string
a = str.split('\n')
b = 'Mic3'
for x in a:
if b not in x:
Why does this code print a string without Mic3

copyright notice
author[CSDN Q&A],Please bring the original link to reprint, thank you.

Random recommended