如果name=”全国计算机等级考试二级Python”,下面输出错误的是
A: >;>;>;print(name[0],name[8],name[-1]) 全 试
B: >;>;>;print(name[:])
C: >;>;>;print(name[11:])
D: >;>;>;print(name[:11])
A: >;>;>;print(name[0],name[8],name[-1]) 全 试
B: >;>;>;print(name[:])
C: >;>;>;print(name[11:])
D: >;>;>;print(name[:11])
举一反三
- 如果name="全国计算机等级考试二级Python",以下选项中输出错误的是 A: >>>print(name[:])全国计算机等级考试二级Python B: >>>print(name[11:])Python C: >>>print(name[:11])全国计算机等级考试二级 D: >>>print(name[0],name[8],name[–1])全试
- 如果name=“全国计算机等级考试二级Python”,下面输出错误的是 A: >>>print(name[0].name[8],name[-1])全试 B: >>prin(name[:])全国计算机等级考试二级Python C: >>>prin(name[11:])Python D: >>>print(name[:11])全国计算机等级考试二级
- 如果name="全国计算机等级考试二级Python",以下选项中输出错误的是() A: >>>print(name[0],name[8],name[–1])全试 B: >>>print(name[:11])全国计算机等级考试二级 C: >>>print(name[11:])Python D: >>>print(name[:])全国计算机等级考试二级Python
- 如果name = "全国计算机等级考试二级Python",以下选项中输出错误的是 A: >>>print(name[:]) <br/>全国计算机等级考试二级Python B: >>> print(name[11:]) <br/>Python C: >>> print(name[:11]) <br/>全国计算机等级考试二级 D: >>> print(name[0], name[8], name[–1]) <br/>全 试
- Python中类的定义正确的是 A: class Phone: name = "" call(self, name) print(name, "打电话") B: class Phone: name = "" call(self, name) print(name, "打电话") C: class Phone: name = "" def call(self, name): print(name, "打电话") D: class Phone name = "" def call(self, name): print(name, "打电话")