Created
August 18, 2022 05:15
-
-
Save yui0/a6cf92d9989a0a442671eb6ad558b46f to your computer and use it in GitHub Desktop.
template for python api
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
#!/usr/bin/env python | |
# -*- coding: UTF-8 -*- | |
import sys, json | |
result_json = {'key': 'value'} | |
print('Content-Type:application/json\n\n') | |
print(json.dumps(result_json)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment