python打印图形大全(详解)

 

 

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="")
------------结果:

 

3)

for i in range(0,10):
shixin=chr(9679)+" "
print(shixin,end="")
----------------结果:

 

4)
for i in range(0,10):
    kongxin=chr(9711)
    shixin=chr(9679)+kongxin
    print(shixin,end="")
-----------结果:

5)

for i in range(0,5):
kongxin=chr(9711)
shixin=chr(9679)
print(shixin+kongxin)
-------------------结果:

6)

for i in range(0,5):
kongxin=chr(9711)
shixin=chr(9679)
print(shixin+kongxin if i%2==0 else kongxin+shixin)

python打印图形大全(详解)_第1张图片

7、

for i in range(0,5):
kongxin=chr(9711)
shixin=chr(9679)
print(shixin+kongxin if i%2==0 else kongxin+shixin,end="")

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="")

9)

for i in range(0,5):
kongxin = chr(9711)
print()
for j in range(0,5):
shixin=chr(9679)
print(shixin+kongxin ,end="" )
python打印图形大全(详解)_第2张图片

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="" )

11)

for i in range(0,5):
shixin=chr(9679)
print()
for j in range(0,5):
# if i==j:
# break
print(shixin,end="")
for i in range(0,5):
shixin=chr(9679)
print()
for j in range(0,5):
if i==j:
break
print(shixin,end="")

12)

for i in range(0,5):
shixin=chr(9679)
print()
for j in range(0,5):
if i continue
print(shixin,end="")
python打印图形大全(详解)_第3张图片

13)

for i in range(0,5):
shixin=chr(9679)
print()
for j in range(0,5):
if i<=j:
continue
print(shixin,end="")

14)

for i in range(0,5):
shixin=chr(9679)
print()
for j in range(0,5):
if i>j:
continue
print(shixin,end="")

15)

for i in range(0,5):
shixin=chr(9679)
kongxin=chr(9711)
print()
for j in range(0,5):
print(shixin if i<=j else kongxin,end="")
for i in range(0,5):
shixin=chr(9679)
kongxin=chr(9711)
print()
for j in range(0,5):
print(shixin if i python打印图形大全(详解)_第4张图片
for i in range(0,5):
shixin=chr(9679)
kongxin=chr(9711)
print()
for j in range(0,5):
print(shixin if i>j else kongxin,end="")

16)

for i in range(0,5):
shixin=chr(9679)
kongxin=chr(9711)
print()
for j in range(0,5):
if i == 1:
continue
print(shixin if i>j else kongxin,end="")
python打印图形大全(详解)_第5张图片
for i in range(0,5):
shixin=chr(9679)
kongxin=chr(9711)
print()
for j in range(0,5):
if i == 1:
continue
print(shixin if i python打印图形大全(详解)_第6张图片

17)

for i in range(0,5):
shixin=chr(9679)
kongxin=chr(9711)
if i == 1:
continue
print()
for j in range(0,5):
print(shixin if i<=j else kongxin,end="")

18)
for i in range(0,5):
shixin=chr(9679)
kongxin=chr(9711)
if i == 1 or i==2:
continue
print()
for j in range(0,5):
print(shixin if i<=j else kongxin,end="")
for i in range(0,5):
shixin=chr(9679)
kongxin=chr(9711)
if i == 1 or i==2:
continue
print()
for j in range(0,5):
if i>j:
print(shixin,end="")
# print(shixin if i<=j else kongxin,end="")

 19、

for i in range(0,5):
shixin=chr(9679)
kongxin=chr(9711)
a=3
for j in range(0,5):
if i>j-a:
print(shixin,end="")
# print(shixin if i<=j else kongxin,end="")
print()

20、

for i in range(0,5):
shixin=chr(9679)
kongxin=chr(9711)
a=3
for j in range(0,5):
if i>j-a:
print(shixin,end="")
print(shixin if i<=j else kongxin,end="")
print()
python打印图形大全(详解)_第7张图片

21)

for i in range(0,5):
shixin=chr(9679)
kongxin=chr(9711)
a=3
for j in range(0,9):
if i print(shixin,end="")
# print(shixin if i<=j else kongxin,end="")
print()
python打印图形大全(详解)_第8张图片

22)

for i in range(0,5):
shixin=chr(9679)
kongxin=chr(9711)
a=3
if i==3:
break
for j in range(0,9):
if i print(shixin,end="")
# print(shixin if i<=j else kongxin,end="")
print()

23)

for i in range(0,5):
shixin=chr(9679)
print()
if i==3:
break
for j in range(0,5):
if i>j:
continue
print(shixin,end="")

24)

for i in range(0,5):
shixin=chr(9679)
for j in range(0,5):
if i continue
print(shixin,end="")
print()
python打印图形大全(详解)_第9张图片
for i in range(0,5):
shixin=chr(9679)
if i==3:
break
for j in range(0,5):
if i continue
print(shixin,end="")
print()

python打印图形大全(详解)_第10张图片

for i in range(0,5):
shixin=chr(9679)
for j in range(0,5):
if i continue
print(shixin if i>1 else " ",end="")
print()

25、

for i in range(0,5):
shixin=chr(9679)
kongxin = chr(9711)
for j in range(0,5):
if i continue
print(kongxin if j<2 else shixin,end="")
print()

26)

for i in range(0,5):
shixin=chr(9679)
kongxin = chr(9711)
for j in range(0,5):
if i continue
print(shixin if j<3 else "",end="")
print()
python打印图形大全(详解)_第11张图片
27)
for i in range(0,5):
shixin=chr(9679)
kongxin = chr(9711)
for j in range(0,5):
print(shixin+" " if i==0 or i==4 else shixin*(j-3),end="")
print()
for i in range(0,5):
shixin=chr(9679)
kongxin = chr(9711)
for j in range(0,5):
print(shixin+" " if i==0 or i==4 else shixin*(j+2)+" "*(j+1),end="")
print()

 

 
    
 
    

for i in range(0,5):
shixin=chr(9679)
kongxin = chr(9711)
for j in range(0,5):
# if i == 0 or i == 4:
# print(shixin+" ",end="")
# else:
# if j==0:
# print(shixin+"*"*(j+10)+shixin,end="")
print(shixin+" " if i==0 or i==4 else "*"*(j+12)+shixin,end="")
print()
for i in range(0,5):
shixin=chr(9679)
kongxin = chr(9711)
for j in range(0,5):
print(shixin+" " if i==0 or i==4 else " "*(j+3)+shixin*(j+1)+" "*(j+1),end="")
print()
python打印图形大全(详解)_第12张图片
for i in range(0,5):
shixin=chr(9679)
kongxin = chr(9711)
for j in range(0,5):
if i==0 or i==4:
print(shixin + " ",end="")
else:
if j==0:
print("*"*(j+6)+shixin,end="")
# print(shixin+" " if i==0 or i==4 else " "*(j+3)+shixin*(j+1)+" "*(j+1),end="")
print()

for i in range(0,5):
shixin=chr(9679)
kongxin = chr(9711)
for j in range(0,5):
if i==0 or i==4:
print(shixin + " ",end="")
else:
if j==0:
print(" "*(j+10-i*3)+shixin,end="")
# print(shixin+" " if i==0 or i==4 else " "*(j+3)+shixin*(j+1)+" "*(j+1),end="")
print()
python打印图形大全(详解)_第13张图片
for i in range(0,5):
shixin=chr(9679)
kongxin = chr(9711)
for j in range(0,5):
if i==0 or i==4:
print(shixin + " ",end="")
else:
if j==0:
print( shixin+" "*(j+10-i*3)+shixin,end="")
print()


for i in range(0,5):
shixin=chr(9679)
kongxin = chr(9711)
for j in range(0,5):
if i==0 or i==4:
print(shixin + " ",end="")
else:
if j==0:
print("*"*(j+12)+shixin,end="")
# print(shixin+" " if i==0 or i==4 else " "*(j+3)+shixin*(j+1)+" "*(j+1),end="")
print()

-----------
for i in range(0,5):
shixin=chr(9679)
kongxin = chr(9711)
for j in range(0,5):
if i==0 or i==4:
print(shixin + " ",end="")
else:
if j==0:
print(shixin+"*"*(j+10)+shixin,end="")
# print(shixin+" " if i==0 or i==4 else " "*(j+3)+shixin*(j+1)+" "*(j+1),end="")
print()

python打印图形大全(详解)_第14张图片
for i in range(0,5):
shixin=chr(9679)
kongxin = chr(9711)
for j in range(0,5):
if i == 0 or i == 4:
print(shixin+" ",end="")
else:
if j==0:
print(shixin+"*"*(j+10)+shixin,end="")
# print(shixin+" " if i==0 or i==4 else "*"*(j+12)+shixin,end="")
print()
python打印图形大全(详解)_第15张图片
 
    
for i in range(0,5):
shixin=chr(9679)
kongxin = chr(9711)
for j in range(0,5):
if i == 0 or i == 4:
print(shixin+" ",end="")
else:
if j==0:
print(shixin+"*"*(j+10)+shixin,end="")
# print(shixin+" " if i==0 or i==4 else "*"*(j+12)+shixin,end="")
print()

 

for i in range(0,5):
shixin=chr(9679)
kongxin = chr(9711)
for j in range(0,5):
if i==0 or i==4:
print(shixin + " ",end="")
else:
if j==0:
print(" "*(j+i+i+i)+shixin,end="")
# print(shixin+" " if i==0 or i==4 else " "*(j+3)+shixin*(j+1)+" "*(j+1),end="")
print()
for i in range(0,5):
shixin=chr(9679)
kongxin = chr(9711)
for j in range(0,5):
if i==0 or i==4:
print(shixin + " ",end="")
else:
if j==0:
print(shixin,end="")
# print(shixin+" " if i==0 or i==4 else " "*(j+3)+shixin*(j+1)+" "*(j+1),end="")
print()
python打印图形大全(详解)_第16张图片
28)
for i in range(0,5):
shixin=chr(9679)
kongxin = chr(9711)
for j in range(0,5):
if i==0 or i==4:
print(shixin + " ",end="")
else:
if j!=1:
print(" "*(j)+shixin*(j-i),end="")
# print(shixin+" " if i==0 or i==4 else " "*(j+3)+shixin*(j+1)+" "*(j+1),end="")
print()

 29)

for i in range(0,5):
shixin=chr(9679)
kongxin = chr(9711)
for j in range(0,5):
if i==0 or i==4:
print(shixin + " ",end="")
else:
if j==0:
print( shixin+" "*(j+10-i*3)+shixin,end="")
print()
for i in range(0,5):
shixin=chr(9679)
kongxin = chr(9711)
for j in range(0,5):
if i==0 :
print(shixin + " ",end="")
else:
if j==0 and i!=4:
print( shixin+" "*(j+10-i*3)+shixin,end="")
print()
python打印图形大全(详解)_第17张图片
for i in range(0,5):
shixin=chr(9679)
kongxin = chr(9711)
for j in range(0,5):
if i==0 :
print(shixin + " ",end="")
else:
if j==0 :
print( shixin+" "*(j+10-i*3)+shixin,end="")
print()
python打印图形大全(详解)_第18张图片
for i in range(0,5):
shixin=chr(9679)
kongxin = chr(9711)
for j in range(0,5):
if i==0 or i==4:
print(shixin + " ",end="")
else:
if j==0 :
# print(shixin+"*"*(j+10)+shixin,end=)
print( shixin+" "*(j+10-i*3)+shixin+"*"*(i*3-2)+shixin,end="")
print()
python打印图形大全(详解)_第19张图片
for i in range(0,5):
shixin=chr(9679)
kongxin = chr(9711)
for j in range(0,5):
if i==0 or i==4:
print(shixin + " ",end="")
else:
if j==0 :
# print(shixin+"*"*(j+10)+shixin,end=)
# print(" "*(j + i*3) + shixin, end="")
print( shixin+"*"*(i*3-2) + shixin+"*"*(j+10-i*3)+shixin,end="")
print()
for x in range(0,10):
shixin = chr(9679)
for y in range(0,10):
print(((x-2)**2+(y-7)**2-x*10)*" "+shixin,end="")
print()
python打印图形大全(详解)_第20张图片
for x in range(0,10):
shixin = chr(9679)
for y in range(0,10):
print(((x-2)**2+(y-3)**2-x*10)*" "+shixin,end="")
print()
for x in range(0,10):
shixin = chr(9679)
for y in range(0,10):
print(((x-2)**2+(y-2)**2-x*10)*" "+shixin,end="")
print()
python打印图形大全(详解)_第21张图片
for x in range(0,10):
shixin = chr(9679)
for y in range(0,10):
print(((x-1)**2+(y-2)**2-x*10)*" "+shixin,end="")
print()
python打印图形大全(详解)_第22张图片
for x in range(0,10):
shixin = chr(9679)
for y in range(0,10):
print(((x-1)**2+(y-1)**2-x*10)*"*"+shixin,end="")
print()
python打印图形大全(详解)_第23张图片
for x in range(0,10):
shixin = chr(9679)
for y in range(0,10):
print((3*x**2+4*y-49)*"*"+shixin,end="")
print()
python打印图形大全(详解)_第24张图片

 

for i in range(0,5):
# kongxin = chr(9711)
shixin = chr(9679)
for j in range(0,5):
if i==1 or i==5 or j==1 or j==9 :
kongxin=" * "
else:
kongxin=chr(9711)
if i%2==0:
print(shixin + kongxin,end="")
else:
print(kongxin+shixin,end="")
# print(shixin+kongxin if i%2==0 else kongxin+shixin,end="")
print()

 

 
    
 
    
 
    
 
    
 
    
 
    
 
    
 
    
 
    
 
    
 
    

 

 
    
 
    
 
    
 
    
 
    
 
    
 
    
 
    
 
    
 
    
 
    
 
    



 
    
 
   

 

转载于:https://www.cnblogs.com/machangwei-8/p/10703621.html

你可能感兴趣的:(python打印图形大全(详解))