标签:log main 面试题 pre odi 乘法 one int 面试
面试题比较简单,代码如下:
# -*- coding: utf-8 -*- def print_one_line(i): string = ‘\t‘*(i-1) for n in range(i,10): string += str(i) + ‘X‘+ str(n) + ‘=‘ + str(i*n) +‘\t‘ print string if __name__ == ‘__main__‘: for i in range(1,10): print_one_line(i)
标签:log main 面试题 pre odi 乘法 one int 面试
原文地址:http://www.cnblogs.com/zhouxiaoming/p/7222153.html