1)
for i in range(0,10): shixin=chr(9679) print(shixin) -------------------结果:
2)
for i in range(0,10):
shixin=chr(9679)
print(shixin,end="")
------------结果:
![](https://i-blog.csdnimg.cn/blog_migrate/d04d60291f2eb29dbe7ea04bc56e0759.png)
3)
for i in range(0,10):
shixin=chr(9679)+" "
print(shixin,end="")
----------------结果:
![](https://i-blog.csdnimg.cn/blog_migrate/d6be0cf4d7ba9ac816aa470236dc50ba.png)
4) for i in range(0,10): kongxin=chr(9711) shixin=chr(9679)+kongxin print(shixin,end="") -----------结果:
![](https://i-blog.csdnimg.cn/blog_migrate/c5cdbc3a86036235e2d899adfa7e719a.png)
5)
for i in range(0,5):
kongxin=chr(9711)
shixin=chr(9679)
print(shixin+kongxin)
-------------------结果:
![](https://i-blog.csdnimg.cn/blog_migrate/0d888da9c37a6b9e3486631d25003d3e.png)
6)
for i in range(0,5):
kongxin=chr(9711)
shixin=chr(9679)
print(shixin+kongxin if i%2==0 else kongxin+shixin)
7、
for i in range(0,5):
kongxin=chr(9711)
shixin=chr(9679)
print(shixin+kongxin if i%2==0 else kongxin+shixin,end="")
![](https://i-blog.csdnimg.cn/blog_migrate/57b0eb4966b1f64da45b1ec4dad2c442.png)
8)
for i in range(0,5):
kongxin = chr(9711)
print()
for j in range(0,5):
shixin=chr(9679)
print(shixin+kongxin if i%2==0 else kongxin+shixin,end="")
![](https://i-blog.csdnimg.cn/blog_migrate/79c56b7509816bfd382f5bf0ba479acd.png)
9)
for i in range(0,5):
kongxin = chr(9711)
print()
for j in range(0,5):
shixin=chr(9679)
print(shixin+kongxin ,end="" )
![](https://i-blog.csdnimg.cn/blog_migrate/53629531f3834cc1f10be3c9f437cca6.png)
10)
for i in range(0,5):
kongxin = chr(9711)
print("\n")
for j in range(0,5):
shixin=chr(9679)
print(shixin+" "+kongxin+" " ,end="" )
![](https://i-blog.csdnimg.cn/blog_migrate/5ddd76f49ba7b8c92de2449a5dea70b9.png)
11)
for i in range(0,5):
shixin=chr(9679)
print()
for j in range(0,5):
# if i==j:
# break
print(shixin,end="")
![](https://i-blog.csdnimg.cn/blog_migrate/95c9a0410f332e5db98709980d27bacb.png)
for i in range(0,5):
shixin=chr(9679)
print()
for j in range(0,5):
if i==j:
break
print(shixin,end="")
![](https://i-blog.csdnimg.cn/blog_migrate/012dda3171d99ead7ea8f43774a7b8ca.png)
12)
for i in range(0,5):
shixin=chr(9679)
print()
for j in range(0,5):
if i<j:
continue
print(shixin,end="")
![](https://i-blog.csdnimg.cn/blog_migrate/7a9ffcf3468b223b4d9a9d57059d1556.png)
13)
for i in range(0,5):
shixin=chr(9679)
print()
for j in range(0,5):
if i<=j:
continue
print(shixin,end="")
![](https://i-blog.csdnimg.cn/blog_migrate/9e0acf09b77773d3cce128c0a33578c0.png)
14)
for i in range(0,5):
shixin=chr(9679)
print()
for j in range(0,5):
if i>j:
continue
print(shixin,end="")