要求的网格:
基础实现:
def grid_1():
print('+ - - - - + - - - - +')
print('| | |')
print('| | |')
print('| | |')
print('| | |')
def grid():
grid_1()
grid_1()
print('+ - - - - + - - - - +')
grid()
print打印多个值
print('+', '-')
print('+', end=' ')
print('-')
print()#结束当前行,跳到下一行