南开大学2021年9月《Python编程基础》作业考核试题及答案参考
1.所有的拍档都必须承接货物安全服务。( )
所有的拍档都必须承接货物安全服务。( )
参考答案:√
2.已知“str=&39;a\rb\r\nc\n&39;”,则“str.splitlines(True)”的返回结果是( )。
A.['a','b','c']
B.['a\r','b\r\n','c\n']
C.['a\r','b\r','c']
D.['a\r','b','c']
参考答案:B
3.已知Student类是一个空类,stu1和stu2是Student类的两个对象,则通过“stu1.name=‘李晓明’”语句增加的属性可以通过( )访问。
A.Student.name、stu1.name或stu2.name
B.Student.name或stu1.name
C.stu ...


雷达卡


京公网安备 11010802022788号







