The function definitions are targeted to a specific domain.
函数定义针对特定的领域。
For example, in Time1. py there is no obvious connection between the class definition and the function definitions that follow.
例如,在Time1 . py里面,类的定义和后面的函数定义就没有啥明显的练习。
This encloses the self variable with the function definitions, so it is still available when the browser calls the functions, as shown in Listing 6.
这将 self 变量封闭在函数定义中,所以当浏览器调用函数时它仍然可用,见清单 6。
应用推荐