Skip to content

Instantly share code, notes, and snippets.

@AvalonWot
Last active August 29, 2015 14:18
Show Gist options
  • Save AvalonWot/3234985d507a468fd99b to your computer and use it in GitHub Desktop.
Save AvalonWot/3234985d507a468fd99b to your computer and use it in GitHub Desktop.
Python: stack string
def stackString(text):
tmp = "','".join([i for i in text])
out = "{{'{0}','\\0'}}".format(tmp)
print(out)
return out
stackString("QueryPerformanceFrequency")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment