使用当前浏览器访问考试宝,无法享受最佳体验,推荐使用 Chrome 浏览器进行访问。
更新时间: 试题数量: 购买人数: 提供作者:
有效期: 个月
章节介绍: 共有个章节
我的错题 (0道)
我的收藏 (0道)
我的斩题 (0道)
我的笔记 (0道)
顺序练习 0 / 0
随机练习 自定义设置练习量
题型乱序 按导入顺序练习
模拟考试 仿真模拟
题型练习 按题型分类练习
易错题 精选高频易错题
学习资料 考试学习相关信息
Class Test:
count = 21
def print_num(self):
count = 20
self.count+=20
print(count)
Test= Test()
Test.print_num()
运行程序,输出结果是( )。
Class Init:
def __init__(self, addr, tel):
self.__addr = addr
self.tel = tel
def show_info(self):
print(f"地址:{self.__addr}")
print(f"手机号:{self.tel}")
Init = Init('北京', '12345')
Init.show_info()
Txt_file = open('txt_demo.txt', 'r',encoding='utf-8')
Txt_file.seek(16, 0)
Print(txt_file.read())
输出结果是( )。
Num_one = 9
Num_two = 0
Print(num_one/num_two)
运行代码,Python解释器抛出的异常是( )