Last active
December 30, 2015 16:49
-
-
Save hideshi/7856839 to your computer and use it in GitHub Desktop.
You can use here document like shell script.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html = ''' | |
<html> | |
<body> | |
Hello world | |
</body> | |
</html> | |
''' | |
for i in html.split('\n'): | |
if i.find('bo') > 0: | |
print(i.strip()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment