摘要: 1 # 【8*8棋盘八皇后问题】 2 3 class Queen: 4 def __init__(self, row, col): 5 self.row = row 6 self.col = col 7 self.pos = (row + 1, col + 1) 8 9 def check(s... 阅读全文
posted @ 2019-07-09 14:41 Amadues 阅读(295) 评论(0) 推荐(0) 编辑