Python 图案打印--九九乘法表
发布日期:2021-06-28 20:06:01 浏览次数:2 分类:技术文章

本文共 194 字,大约阅读时间需要 1 分钟。

i = 1while i <= 9:	j = 1	while j <= i:		result = i * j		if result < 10:			print("%s X %s = %s  "%(j,i,result),end="")		else:			print("%s X %s = %s "%(j,i,result),end="")		j += 1	print("")	i += 1

在这里插入图片描述

转载地址:https://blog.csdn.net/XY0918ZWQ/article/details/111147817 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:Python 实战案例--猜数字游戏
下一篇:Python 图案打印--空心菱形

发表评论

最新留言

路过按个爪印,很不错,赞一个!
[***.219.124.196]2024年04月19日 05时14分24秒