发布时间:2014-06-10 08:25:39
from random import randintboard = []for x in range(0,5): board.append(["O"] * 5)def print_board(board): for row in board: print (" ".join(row))def random_row(board): return randint(0, len(board) - 1)def random_col(board): return randint(0, len(board[0]) - 1)ship_r.........【阅读全文】
发布时间:2014-06-10 08:23:42
lloyd = { "name": "Lloyd", "homework": [90.0, 97.0, 75.0, 92.0], "quizzes": [88.0, 40.0, 94.0], "tests": [75.0, 90.0]}alice = { "name": "Alice", "homework": [100.0, 92.0, 98.0, 100.0], "quizzes": [82.0, 83.0, 91.0], "tests": [89.0, 97.0]}tyler = { "name": "Tyl.........【阅读全文】