正确例题
import re
z = ["\033[42;30;4m■","\033[42;31;4m■","\033[42;32;4m■","\033[42;33;4m■","\033[42;34;4m■","\033[42;35;4m■","\033[42;36;4m■","\033[42;37;4m■"]
for i in range(0,8):
for j in range(0,8):
print("%s%s\n" % (z[i],z[j]))
正确例题
import re
z = ["\033[42;31;4m□","\033[42;31;4m■"]
for i in range(0,2):
for j in range(0,2):
print("%s%s\n" % (z[i],z[j]))
正确例题
import re
z = ["\033[30;31;6m□","\033[30;31;6m■"]
for i in range(0,2):
for j in range(0,2):
print("%s%s" % (z[i],z[j]))
正确例题
import re
z = ["\033[30;32;6m□","\033[30;32;6m■"]
for i in range(0,2):
for j in range(0,2):
for k in range(0,2):
for l in range(0,2):
for m in range(0,2):
for n in range(0,2):
print("%s%s%s%s%s%s" % (z[i],z[j],z[k],z[l],z[m],z[n]))
正确例题
import re
z = ["\033[30;31;6m□","\033[30;31;6m■"]
for i in range(0,2):
for j in range(0,2):
for k in range(0,2):
for l in range(0,2):
for m in range(0,2):
for n in range(0,2):
print("%s%s%s%s%s%s" % (z[i],z[j],z[k],z[l],z[m],z[n]))