标签:obj tab str utf-8 乘法表 range 脚本 The table
python九九乘法表脚本:#--conding:utf-8--
auther = ‘YJ0_1‘
class PrintTable(object):
def __init__(self):
print(‘start‘)
self.print99()
def print99(self):
for i in xrange(1,10):
for j in xrange(1,i+1):
print(‘%dx%d=%2s‘ % (j,i,i*j)),
print(‘\n‘)
if name == ‘main‘:
pt = PrintTable()
标签:obj tab str utf-8 乘法表 range 脚本 The table
原文地址:https://blog.51cto.com/9100413/2542149