- 博客(3)
- 收藏
- 关注
原创 Problem Set 3 Word Game单词游戏
import math import random import string VOWELS = ‘aeiou’ CONSONANTS = ‘bcdfghjklmnpqrstvwxyz’ HAND_SIZE = 7 SCRABBLE_LETTER_VALUES = { ‘a’: 1, ‘b’: 3, ‘c’: 3, ‘d’: 2, ‘e’: 1, ‘f’: 4, ‘g’: 2, ‘h’: 4, ‘...
2019-06-25 23:39:07
1270
原创 Problem Set 2 Hangman Game字谜游戏
@author: LiuYulin “”" Problem Set 2, hangman.py Name: Collaborators: Time spent: Hangman Game ----------------------------------- Helper code You don’t need to understand this helper code, but you wil...
2019-04-20 16:11:53
606
原创 Problem Set 1 贷款买房与储蓄计划
Introduction to Computer Science and Programming in Python (Fall 2016)是ocw.mit的课程6.0001,作业没有答案,有些program可以参考以前课程的作业的思路。代码是去年写下,稍作整理以记录。 part A: House Hunting annual_salary = int(input("Enter your annu...
2019-04-02 08:12:46
731
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅