[Python]错题集
来源:互联网 发布:软件源大全 编辑:程序博客网 时间:2024/06/06 19:20
Question 1
Which of the following results in a
SyntaxError
?"He said, "Yes!""
0.25 '''That's okay'''
0.25 '3\'
0.25 '"Once upon a time...", she said.'
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.
print('hello', 'how', 'are', 'you' + '-' * 4)
0.25 print('hello' + '-' + 'how' + '-' + 'are' + '-' + 'you')
0.25 print('hello-' + 'how-are-you')
0.25 print('hello', '-', 'how', '-', 'are', '-', 'you')
0.00 Total 0.75 / 1.00理解:print('hello','world')hello world \\用,中间会自动产生空格
print('hello'+'world')
helloworld \\如果用+中间空格不会自动产生
0 0
- [Python]错题集
- Python
- Python
- Python
- python
- Python
- PYTHON
- Python
- Python
- Python
- Python
- Python
- Python
- Python
- Python
- Python
- Python
- python
- Android实战技巧:用TextView实现Rich Text---在同一个TextView中设置不同的字体风格
- android TV 屏幕适配
- onvif规范的实现:server端Discovery实现,通过OnvifTestTool12.06测试
- ERROR ITMS-9000: "Redundant Binary Upload. There already exists a binary upload with build version '
- Java_移位运算符_<<(左移)、>>(右移)
- [Python]错题集
- Spring3 整合Hibernate3.5 动态切换SessionFactory (切换数据库方言)
- code使用设置相关-快捷键
- JVM的类加载机制: 加载、连接、初始化。
- Yii中获取参数的方法
- ios开发必备10款第三方类库
- AFNetWorking的理解
- PHP获取当前目录和相对目录的方法
- 通过Maven的版本管理来管理项目公共模块