Print, input, variable, input
Follow the [Crossin programming classroom] to complete related software.
1. print the file directly. The following red prompt is displayed. (The English dregs cannot be understood, and the English dregs must be supplemented)
After Baidu, it turned out to be due to file encoding instructions. The default encoding cannot display Chinese characters. So I may be wrong when I enter Chinese. It should be added at the beginning of the program# Coding = UTF-8
In addition, if you want to calculate 1 + 2, the result is directly output 1 + 2.
Solution: Remove single quotes, print space 1 + 2
The last print, all of which are available. There are two problems. The road is long and blocked. In short, follow the basics of Crossin's programming classroom.
2. Input
Input ()
If it's just input, it's okay. If you want the program to prompt me, enter the text. Therefore, this sentence is added to brackets. However, when something went wrong, there was a Chinese character, so I added # coding = UTF-8 in front of it, but it still didn't work. I think this is also a piece of text, which must be enclosed in single quotes.
Sure enough.
3. Variables
Variables are like middle school equations. Assign the value on the right to the value on the left. I personally think that it is easy to write repeated things only once. For example
A = jchfudfhuhsdhcdsbvjbfvbbbkankanvjbdvvbjcbnl
Then we can replace it with.
There seems to be no problem.