标签: python
我正在尝试检查一行中的多个字符串,我试图执行以下操作,但是当该行包含“ Change-Id”或“ N / A”时检查失败,请告知
line = 'N/A' if (('Change-Id|N/A') not in line): print line else: print "line check failed"