Skip to content

Instantly share code, notes, and snippets.

@johnzeringue
Created June 20, 2014 20:59
Show Gist options
  • Save johnzeringue/75551592ab0fb8dc8018 to your computer and use it in GitHub Desktop.
Save johnzeringue/75551592ab0fb8dc8018 to your computer and use it in GitHub Desktop.
printf in Python with Python 3-style format strings
def printf(format, *args, **kwargs):
"""printf in Python with Python 3-style format strings"""
print(format.format(*args, **kwargs), end='')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment