Type the text of Listing 3, and save it as Pizza.class.php in the pizza folder.
复制清单3并将文本保存为pizza文件夹中的pizza . class . php文件。
To try this out, type the above into a text editor and save the file as "test.html", then view the file in a web browser.
要试验它,可以在文本编辑器里面输入上面的代码并保存文件为“test . html”,然后在一个浏览器中查看这个文件。
When you type them into the Python interpreter (or if you save them in a file and execute them as a Python program), the statements are read starting on the left side and progressing to the right.
当把它们键入Python解释器中(或者将它们保存在一个文件中,并作为一个Python程序来执行)时,读取语句的顺序是从左到右。
应用推荐