Skip to content

Instantly share code, notes, and snippets.

@spirosrap
Created July 11, 2020 22:18
Show Gist options
  • Save spirosrap/e257e4384658126b5688ffad2c74bdc9 to your computer and use it in GitHub Desktop.
Save spirosrap/e257e4384658126b5688ffad2c74bdc9 to your computer and use it in GitHub Desktop.
if __name__ == '__main__':
source = '''if __name__ == '__main__':
source = {1}{0}{1}
print(source.format(source, "{2}", r"{2}", r"{3}"))'''
print(source.format(source, "\'\'\'", r"\'\'\'", r"\\\\'\\\\'\\\\'"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment