Learning Python from Codecademy

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Learning Python from Codecademy相关的知识,希望对你有一定的参考价值。

---syntax---

1. booleans: True and False

2. assin and reassign value to variable: spam =3

3. whitespace: indent(indentation) two blank spaces of four blank spaces

4. interpreter(interpretation): run your code line by line, and check for any errors

5. single line comment: use the # sign 

6. multi-line comment: starting each line with #, or use a set of triple quotation marks""".........."""

7. exponent(exponentiation): use **, like this 10**2

8. modulo: get the reminder from division, when you use decimal, you should set like this 15.0/100 not 15/100

 

以上是关于Learning Python from Codecademy的主要内容,如果未能解决你的问题,请参考以下文章

Learning Python from Codecademy

Learning the "PEP 8 -- Style Guide for Python Code" - part 1

python ROC_code_from_AM

[python][原创]win10 anaconda3报错cannot import name ‘open_code‘ from ‘io

Learning from delayed reward (Q-Learning的提出) (Watkins博士毕业论文)(建立了现在的reinforcement Learning模型)

转发 Learning Go?—?from zero to hero