python-demo/basic/打印99乘法表.py

13 lines
265 B
Python

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
@File : 打印99乘法表.py
@Author : lichao
@Date : 2024/11/26 17:03
@Software : PyCharm
"""
for i in range(1, 10):
for j in range(1, i + 1):
print(f' {i * j}', end=' ')
print()