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)
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="" )
10)
for i in range(0,5):
kongxin = chr(9711)
print(" ")
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<j:
continue
print(shixin,end="")
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<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>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="")
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="")
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()
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()
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()
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<j:
continue
print(shixin,end="")
print()
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()
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()
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()
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()
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()
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()
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()
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(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()
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()
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()
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()
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()
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()
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()
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()
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()
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()