Skip to content

Instantly share code, notes, and snippets.

@hideshi
Last active December 30, 2015 16:49
Show Gist options
  • Save hideshi/7856839 to your computer and use it in GitHub Desktop.
Save hideshi/7856839 to your computer and use it in GitHub Desktop.
You can use here document like shell script.
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