for i in range(20):# 这里循环(0-20) if i <= 9: print("❤ " * i) else: print("❤ " * (20 - i))
标签:20,一个,打印,range,循环,三角形 From: https://www.cnblogs.com/suyj/p/17095272.html
for i in range(20):# 这里循环(0-20) if i <= 9: print("❤ " * i) else: print("❤ " * (20 - i))
标签:20,一个,打印,range,循环,三角形 From: https://www.cnblogs.com/suyj/p/17095272.html