这篇笔记主要是从Python官网的Tutorial上截取下来,再加上个人理解
1. 在交互模式下,下划线‘_‘还可以表示上一步的计算结果

2.引号转义问题。
从下图总结的规律是,字符串里的引号如果和引住字符串的引号是相同的,字符串里的引号需要转义。不同则不需要。
最后一个例子看似没变化,加上print()就不同了
  
加print()和不加print()的区别:
Print() function produces a more readable output, by omitting the enclosing quotes and by printing escaped and special characters:
  
\n 换行符
  
3. list 列表
① 用加号(“+”)连接
 
② 替换元素
 
③ 添加元素 append()在最后一个元素后面添加
 
4. While循环
  
原文:https://www.cnblogs.com/sue2015/p/9040024.html