Chapter 2
In this chapter you’ll learn about the different kinds of data you can work with in
your Python programs.
You’ll also learn how to use variables to represent data in your programs
For example, when the interpreter sees the word print followed by parentheses, it prints to the screen whatever is inside the parentheses(括号).
This feature is called syntax highlighting (语法突出)and is quite useful as you start to write your own programs
use a variable in xx.py, add a new line at begining of the file, and modify the second line
message = "Hello Python World!"
print(message)
We’ve added a variable named message.In this case the value is the “Hello Python world!” text.
Adding a variable makes a little more work for the Python interpreter(增加了点工作量)
Add a blank line(一个空白行) to hello_world.py