MITx 6.00.1x 2019 学习笔记

MITx: 6.00.1x Introduction to Computer Science and Programming Using Python

运行环境

设置 Spyder

启动 Spyder:打开 Anaconda Navigator->Home->spyder->Launch

运行前清除:Preferences->Run->Clear all variables before execution

测试 Matplotlib 和 Numpy

1
2
import numpy
import matplotlib

Resources to Help you Succeed

You do not have to read through these at the start of the course. Come back to these resources as the course progresses!

Add your own at the end of the list, by clicking “Show related resources”, and rate ones you found useful!

If you’re having trouble with a particular concept or simply want to have access to more information, try one of the following links.

Documentation

  • Official Python 3 Documentation - “official”/technical explanation of what a particular function/operator does, examples of correct syntax, what the various libraries are, etc.

Textbooks/Tutorials

Debugging

  • Python Tutor - an excellent way to actually visualize how the interpreter actually reads and executes your code
  • DiffChecker - compares two sets of text and shows you which lines are different
  • Debugging in Python - steps you can take to try to debug your program

Software

Other Q&A

  • Stack Overflow - a large Q&A forum for programming concepts (not just Python). Try searching here before you post on the edX forum, and you may find that someone has already answered your question.

More practice problems

  • Python Challenge - a series of puzzles you can try to test your Python abilities
  • Project Euler - additional programming challenges you can try once your Python knowledge becomes stronger; problems are sorted by increasing difficulty
  • Coding Bat - problems you can solve within an online interpreter
  • Codewars - improve your skills by training on real code challenges

课程

Types

Definitions

  • int
  • float
  • bool
  • NoneType
  • can use type()to see the type of an object

TYPE CONVERSIONS

  • float to int: int(3.9)

  • int to float: float(3)

OPERATIONS

  • ** power
  • *
  • / division
  • +
  • -

Variables

×

纯属好玩

扫码支持
扫码打赏,你说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

文章目录
  1. 1. MITx: 6.00.1x Introduction to Computer Science and Programming Using Python
    1. 1.1. 运行环境
      1. 1.1.1. 设置 Spyder
      2. 1.1.2. 测试 Matplotlib 和 Numpy
    2. 1.2. Resources to Help you Succeed
      1. 1.2.1. Documentation
      2. 1.2.2. Textbooks/Tutorials
      3. 1.2.3. Debugging
      4. 1.2.4. Software
      5. 1.2.5. Other Q&A
      6. 1.2.6. More practice problems
    3. 1.3. 课程
    4. 1.4. Types
    5. 1.5. Variables
,