python打印图形大全(详解)

时间:2022-06-11 11:09:47

 

 

1)
for
i in range(0,10): shixin=chr(9679) print(shixin) -------------------结果:
python打印图形大全(详解)
2)
for i in range(0,10):
shixin=chr(9679)
print(shixin,end="")
------------结果:
python打印图形大全(详解)

 

3)

for i in range(0,10):
shixin=chr(9679)+" "
print(shixin,end="")
----------------结果:
python打印图形大全(详解)

 

4)
for i in range(0,10):
    kongxin=chr(9711)
    shixin=chr(9679)+kongxin
    print(shixin,end="")
-----------结果:
python打印图形大全(详解)

5)

for i in range(0,5):
kongxin=chr(9711)
shixin=chr(9679)
print(shixin+kongxin)
-------------------结果:
python打印图形大全(详解)

6)

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

python打印图形大全(详解)

7、

for i in range(0,5):
kongxin=chr(9711)
shixin=chr(9679)
print(shixin+kongxin if i%2==0 else kongxin+shixin,end="")
python打印图形大全(详解)

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="")
python打印图形大全(详解)

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打印图形大全(详解)

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="" )
python打印图形大全(详解)

11)

for i in range(0,5):
shixin=chr(9679)
print()
for j in range(0,5):
# if i==j:
# break
print(shixin,end="")
python打印图形大全(详解)
for i in range(0,5):
shixin=chr(9679)
print()
for j in range(0,5):
if i==j:
break
print(shixin,end="")
python打印图形大全(详解)

12)

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

13)

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

14)

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

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="")
python打印图形大全(详解)
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="")
python打印图形大全(详解)
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="")
python打印图形大全(详解)

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打印图形大全(详解)
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打印图形大全(详解)

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="")
python打印图形大全(详解)
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="")
python打印图形大全(详解)
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="")
python打印图形大全(详解)

 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()
python打印图形大全(详解)

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打印图形大全(详解)

21)

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

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<j-a:
print(shixin,end="")
# print(shixin if i<=j else kongxin,end="")
print()
python打印图形大全(详解)

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

python打印图形大全(详解)

24)

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

python打印图形大全(详解)

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

25、

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

26)

for i in range(0,5):
shixin=chr(9679)
kongxin = chr(9711)
for j in range(0,5):
if i<j:
continue
print(shixin if j<3 else "",end="")
print()
python打印图形大全(详解)
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()
python打印图形大全(详解)
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()
python打印图形大全(详解)

 

 
 
 
 

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打印图形大全(详解)
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打印图形大全(详解)
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()
python打印图形大全(详解)
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打印图形大全(详解)
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()

-----------
python打印图形大全(详解)
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打印图形大全(详解)
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打印图形大全(详解)
 
 
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打印图形大全(详解)

 

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()
python打印图形大全(详解)
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打印图形大全(详解)
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()
python打印图形大全(详解)

 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()
python打印图形大全(详解)
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打印图形大全(详解)
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打印图形大全(详解)
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打印图形大全(详解)
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()
python打印图形大全(详解)
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打印图形大全(详解)
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()
python打印图形大全(详解)
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打印图形大全(详解)
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打印图形大全(详解)
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打印图形大全(详解)
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打印图形大全(详解)

 

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()
python打印图形大全(详解)