pythoncamp0

python 教程

知识清单

  • 地板除 // 舍弃小数部分 & 常规除

重要思维清单

  • 功能间的转换一定有标记,同样的结束一个功能也必须有标记
    • 函数:开始,停止缩进结束
  • 先把抽象的功能实现,再试图“好看”。先能用,再考虑好用

    You will interact with your program using an input field and several buttons. For this project, we will ignore the canvas and print the computer's responses in the console. Building an initial version of your project that prints information in the console is a development strategy that you should use in later projects as well. Focusing on getting the logic of the program correct before trying to make it display the information in some “nice” way on the canvas usually saves lots of time since debugging logic errors in graphical output can be tricky.

  • Event-driven programming model

    • 程序不再是一股脑儿的运行而是随着操作者的控制一步一步的进行
      • 有利于更改错误:弱耦合,模块化
      • 流程化方便操作
  • 可读性,好看非常重要:确保几个月后自己能看懂,确保其他人能看懂

环境配置问题

多python版本共存问题

Ipython

pip