1. The origin of "hello, world"
Brian Wilson Kernighan, father of the C programming language
how to write C (including Python) keeps updating and developing
2. 养成写注释的习惯 Comment your coding
# 单行注释
Note: 注释不会被当作代码处理, #magic comment除外
To increase the readability of your coding
多行注释,用 “ “ “头尾包含comment
Note: 单引号(single quotation mark) 和双引号 (double quotation mark )在Python中区别不大
3. Basic console output
print 输出,老式计算机是打孔的
\n: 转义字符,等于换了一次回车键
\t: tab键,缩进
sep:控制分隔的参数,可以自定义,默认为一个空格
| 数据类型:String,use "" to include strings/texts
| print(x)和 f(x)的关系
| 用comma隔开默认是一个空格
f-string
9753

被折叠的 条评论
为什么被折叠?



