我试图清理我的代码,而不是使用一堆if语句来处理函数。这是我的代码:
def tic(inpinp, board, qweqwe):
global lik
ink = inpinp - 1
lik = board.insert(ink, qweqwe)
lis = [' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ']
p = input("Player 1, would you like to be X or O?")
inpu = int(input("Where would you like to go?"))
print('{}|{}|{}'.format())
print('--|--|--'.format())
print('{}|{}|{}'.format())
print("--|--|--".format())
print('{}|{}|{}'.format())
目前没有回答
相关问题 更多 >
编程相关推荐