Question 1
Which of the following results in a
SyntaxError
?
Your Answer | Score | Explanation | |
---|---|---|---|
0.25 | |||
0.25 | |||
0.25 | |||
0.00 | |||
Total | 0.75 / 1.00 |
理解:单引号里面可以用双引号,但是不能用单引号
Question 2
The following is printed by a
print
function call:
hello-how-are-youSelect the function call(s) that prints what is shown above.
Your Answer | Score | Explanation | |
---|---|---|---|
0.25 | |||
0.25 | |||
0.25 | |||
0.00 | |||
Total | 0.75 / 1.00 |
hello world \\用,中间会自动产生空格
print('hello'+'world')
helloworld \\如果用+中间空格不会自动产生