• MIT 6.00.1x 计算机科学和Python编程导论 Set 4

    时间:2023-01-09 21:28:37

    Word Scores 为单词算分值 感谢 glhezjnucn 童鞋的给力翻译!! The first step is to implement some code that allows us to calculate the score for a single word. Th...

  • 学堂在线 MITx: 6.00.1x 计算机科学和Python编程导论 problemset3

    时间:2023-01-09 21:28:31

    balance=4213monthlyPaymentRate=0.04annualInterestRate=0.2Month=1monthRate=annualInterestRate/12.0sum=0for i in range(1,13): sum=sum+balance*monthly...

  • MIT 计算机科学及编程导论 Python 笔记 1

    时间:2023-01-09 21:28:19

    计算机科学及编程导论在 MIT 的课程编号是 6.00.1,是计算机科学及工程学院的经典课程。之前,课程一直使用 Scheme 作为教学语言,不过由于 Python 简单、易学等原因,近年来已经改用 Python 作为教学语言了。更多介绍 最初知道这个课程的时候大概是在 2014 年,对于做事拖沓的...

  • MIT 计算机科学和Python 编程导论

    时间:2023-01-09 21:23:25

           其实上一本书《笨办法学python》严格意义上来说,算不上是入门书,因为它主要目的是让你去找到敲代码的感觉,基本不涉及计算机的内容。说到真正的入门,MIT的《计算机科学和python编程导论》这门课程是个非常好的选择。对于想要入门python的人来说,这门课程不会让你失望,但是它能给...

  • MIT 6.00.1x 计算机科学和Python编程导论 Set 1

    时间:2023-01-09 21:23:37

    Counting Vowels Assume s is a string of lower case characters. Write a program that counts up the number of vowels contained in the string s. ...

  • python 字符串 学堂在线 MITx: 6.00.1x 计算机科学和Python编程导论 problem set 2

    时间:2023-01-09 21:23:31

    s = 'xkhlboetagwpsotgx' max=-1result=''for i in range(0,len(s)): count=1 for j in range(i+1,len(s)): if s[j:j+1]>=s[j-1:j]: ...

  • MIT 6.00.01X 计算机科学和Python编程导论 week1

    时间:2023-01-09 21:23:43

    词汇: armamentarium 设备 iteration 迭代 data structure 数据结构 recursion  递归 module  模块 modularization 模块化 algorithm 算法 ...

  • MIT 6.00.1x 计算机科学和Python编程导论 Set 7

    时间:2023-01-09 21:23:49

    Part I: Data Structure Design 感谢 glhezjnucn 童鞋的给力翻译 First, let’s talk about one specific RSS feed: Google News. The URL for the Google News fee...

  • MIT 6.00.1x 计算机科学和Python编程导论 Set 2

    时间:2023-01-09 21:19:11

    Paying Off Credit Card Debt Each month, a credit card statement will come with the option for you to pay a minimum amount of your charge, usuall...

  • 计算机科学导论·绪论

    时间:2023-01-09 19:41:48

    第一章·绪论 1.10 小结 阿兰·图灵在1937年首次提出了一个通用计算设备的设想。他所设想的计算都可能在一种特殊的机器上执行,这就是现代所说的图灵机。 基于冯·诺伊曼模型建造的计算机分为4个子系统:存储器、算术逻辑单元、控制单元和输入输出单元。冯·诺伊曼模型指出程序必须存储在存储器中。 计...

  • MIT计算机科学与编程导论——class1

    时间:2023-01-09 19:42:18

    1.goal(目标)      Computation thinking(计算思维)      Understand code(read and write code)      Understand abilities and limits      map problem into comput...

  • MIT 6.00.1X 计算机科学和PYTHON编程导论-学习笔记(五)递归

    时间:2023-01-09 19:41:30

    迭代: e.g. 计算 x*p def multi(x,p): ans=0 while p>0: ans+=x p-=1 return(ans) 状态变量(设置初始值):  迭代次数i  当前计算结果 result  状态变量 会在迭代的过程中得到...

  • udacity计算机科学导论python - 课程22-15 为什么python代码简单

    时间:2023-01-09 19:42:12

    这课里的fibonacci递归函数,也常称为花瓣序列, 1,1,2,3,5... 后一个数是前两个数之和。  在python中,建议用for函数代替递归函数,效率更高  def fibonacci(n):    s1 = 0    s2 = 1      for a in range(0,n): ...

  • 《计算机科学导论》笔记

    时间:2023-01-09 19:37:09

    ...没记什么,其实涉及物理层面是有关电子工程学的,我很难看懂......主要的注释和笔记是记在pdf文档中//偶然发现pdf有这种功能   寄存器:CPU上的一小块纯粹区域,用于存储需要频繁用到的数据,因为访问寄存器比访问内存快得多 CPU只是一种具有输入线和输出线的高级电路,CPU上有大量的引...

  • 《计算机科学导论》学习笔记(17) - 课程 17 编程练习 2

    时间:2023-01-09 18:41:07

    1. 练习:字数统计 2. 练习:网络延迟 3. 练习:秒数换算 题目: # Write a procedure, convert_seconds, which takes as input a non-negative # number of seconds and return...

  • 《计算机科学导论》学习笔记(24) - 课程 24: 加星

    时间:2022-05-30 10:48:27

    1.练习:家谱题目:#SingleGoldStar#FamilyTrees#Inthelecture,weshowedarecursivedefinitionforyourancestors.Forthis#question,yourgoalistodefineaprocedurethatfinds...

  • MIT 6.00.1x 计算机科学和Python编程导论 Set 6

    时间:2022-05-30 10:48:03

    Part1Problem1:Encryption感谢glhezjnucn童鞋对本周问题的给力翻译!You’llnowwriteaprogramtoencryptplaintextintociphertextusingtheCaesarcipher.你现在来写一个函数将使用凯撒密码将明文转为密文。de...