知识点:sys模块
import sys for i in range(8): for j in range(8): if(i + j) % 2 == 0: sys.stdout.write(chr(219)) else: sys.stdout.write(chr(1)+ ' ') print('')