Created
October 21, 2015 02:12
-
-
Save snowleung/874b44b621bbae1fe61e to your computer and use it in GitHub Desktop.
for api error code format
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
def render_format(kv): | |
k = kv[0] | |
v = kv[1] | |
with_span = lambda: '{}{}'.format(v[1], ' '*(48-len(v[1]))) | |
return '| {} | {} | {}|'.format(v[0], k, with_span()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment