print "whcih multiplication table would you like?" n=raw_input() for i in range(1,11): print int(n)*i
#result #输入一个数字后,会出现这个数字从1-10乘法的结果,下面是输入了4 whcih multiplication table would you like? 4 4 8 12 16 20 24 28 32 36 40
原文:http://huzhongliang.blog.51cto.com/1817180/1891010