今天的内容如下所示:
Python is a very simple language, and has a very straightforward[ˌstreɪtˈfɔ:wəd]syntax(直截了当的语法). Itencouragesprogrammerstoprogram without boilerplate([ˈbɔɪləpleɪt],样板文件; 公式化,陈词滥调)code. The simplest directive in Python is the "print" directive - it simply prints out a line (and also includes a newline, unlike in C).
There are two major Python versions, Python 2 and Python 3. Python 2 and 3 are quite different. This tutorial uses Python 3, because it more semantically([sɪ'mæntɪklɪ],语义上地)correct and supports newer features.
For example, one difference between Python 2 and 3 is the statement. In Python 2, the "print" statement is not a function, and therefore it is invoked([ɪnˈvəʊk],调用)without parentheses([pəˈrenθəsi:z],小括号). However, in Python 3, it is a function, and must be invoked with parentheses.
有用句型:
to encourage sb to do sth : 鼓励某人做某事
计算机专业词汇:
directive:计算机编程指令
statement:计算机编程中的语句
function:计算机编程中的函数
搭配:
to invoke a function 调用函数
to call a function 调用函数
注:boilerplate注意发音,视频中发音错误,具体音标请参考上文
具体视频如下所示:
领取专属 10元无门槛券
私享最新 技术干货