标签:表示 显示 class end 打印 pytho range 空格 ble
1 # 九九乘法表 2 print(" 九九乘法表") 3 for table_x in range(1,10): 4 for table_y in range(1,table_x +1): 5 print(‘{}x{}={}‘.format(table_x,table_y,table_x*table_y),end=‘ ‘)# end = ‘ ’表示打印不换行,显示空格 6 print(‘‘)
标签:表示 显示 class end 打印 pytho range 空格 ble
原文地址:http://www.cnblogs.com/xuelei-0728/p/6228710.html