2018-05-22 Remove Word in Line

Script

#!/usr/bin/python
# -*- coding: utf-8 -*-

s = '''ASFksdfasf a
Oh sadfafas
Yeasd: asdfaf
Oh asdfaf'''
for line in s.splitlines():
    #if not line.startswith('Oh'):
        print(line)


#ASFksdfasf a
#Yeasd: asdfaf

你可能感兴趣的:(2018-05-22 Remove Word in Line)