#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @Author : {玄铁重剑无锋}
# @Contact : {sfrexpect@163.com}
# @File : 02_for_99乘法表.py
# @Time : 2021/8/25 11:35
# @Desc :
for heng in range(1,10):
for shu in range(1,10):
if heng >= shu:
print(f"{heng}*{shu}={heng * shu} ",end="")
print("")
推荐文章:
用python 打印九九乘法表的7种方式 (python经典编程案例)_崔永华的博客-优快云博客_python打印99乘法表