You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
398 B
17 lines
398 B
'''
|
|
Author: SJ2050
|
|
Date: 2021-10-16 22:21:24
|
|
LastEditTime: 2021-10-16 23:25:56
|
|
Version: v0.0.1
|
|
Description: Solution for homework4.
|
|
Copyright © 2021 SJ2050
|
|
'''
|
|
|
|
if __name__ == '__main__':
|
|
for i in range(10):
|
|
for j in range (10-i,10):
|
|
print(f'{10-i}*{j}={(10-i)*j}', end='\t')
|
|
print('\n')
|
|
|
|
# 使用制表符来进行分割可以让乘法表格显示更加清楚
|