Skip to content

Instantly share code, notes, and snippets.

@zxkletters
Created April 6, 2013 06:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zxkletters/5325141 to your computer and use it in GitHub Desktop.
Save zxkletters/5325141 to your computer and use it in GitHub Desktop.
python版的九九乘法表
print "".join([('%s*%s=%s%s') % (x,y,x*y,('\n' if x==y else '\t')) for x in range(1,10) for y in range(1,10) if x >= y])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment