用python输出################
您可以使用嵌套循环来输出该图案。以下是一个示例代码:
for i in range(4):
for j in range(4):
if j % 2 == 0:
print("#", end="")
else:
print("*", end="")
print()
输出结果为:
#*#*#*#
#*#*#*#
#*#*#*#
#*#*#*#
原文地址: http://www.cveoy.top/t/topic/hNyN 著作权归作者所有。请勿转载和采集!