题目内容 (请给出正确答案)
[单选题]

阅读下面代码: num_one = 9 num_two = 0 print(num_one/num_two) 运行代码,Python解释器抛出的异常是()

A.ZeroDivisionError

B.SyntaxError

C.IndexError

D.OverflowError

提问人:网友abigfish 发布时间:2022-01-07
参考答案
  抱歉!暂无答案,正在努力更新中……
如搜索结果不匹配,请 联系老师 获取答案
网友答案
查看全部
  • · 有4位网友选择 C,占比44.44%
  • · 有3位网友选择 D,占比33.33%
  • · 有2位网友选择 B,占比22.22%
匿名网友 选择了C
[8.***.***.130] 1天前
匿名网友 选择了C
[23.***.***.214] 1天前
匿名网友 选择了B
[224.***.***.220] 1天前
匿名网友 选择了D
[66.***.***.39] 1天前
匿名网友 选择了B
[59.***.***.48] 1天前
匿名网友 选择了C
[29.***.***.208] 1天前
匿名网友 选择了D
[181.***.***.36] 1天前
匿名网友 选择了D
[157.***.***.183] 1天前
匿名网友 选择了C
[222.***.***.126] 1天前
加载更多
提交我的答案
登录提交答案,可赢取奖励机会。
更多“阅读下面代码: num_one = 9 num_two = …”相关的问题
第1题
In this way one can kill two birds with one _____: get inspired and learn good English at the same time.

A、stone

B、arrow

C、shot

D、gun

点击查看答案
第2题

翻译练习(一) Deng Xiaoping’s scientific concept of “one country, two systems” was advanced in light of Taiwan’s realities. It both upholds China’s state sovereignty and takes into full account the specific conditions of Taiwan. According to the concept of “one country, two systems”, two systems will be practiced within the sovereign state of the People’s Republic of China. On the premise of one China, the main body of the country will practice the socialist system, while the existing capitalist system and way of life in Taiwan will remain unchanged for a long period of time. This concept is highly flexible in that it both gives full expression to the principle of bringing about China’s reunification and upholding its sovereignty and takes into full consideration the history and realities of Taiwan. To practice “one country, two systems” will facilitate the reunification of China, the rejuvenation of the Chinese nation and peace and development in the world. The concept has been warmly received by the Chinese people both in China and overseas and by the world public opinion. Guided by the basic guideline of “one country, two systems” and related policies, major progress has been made in the across strait relations. The across strait exchanges in personnel, scientific, cultural and sports fields have maintained a strong momentum, and the across strait economic exchange has greatly benefited both sides. All this shows the strong vitality of the concept of “one country, two systems”. Taiwan’s future lies in its reunification with the motherland, and attempt to split China will never be accepted as an alternative. Li Denghui and a small number of people in Taiwan who betray the principle of one China and advocate the creation of “two Chinas” or “one China, one Taiwan” in an attempt to split China are doomed to failure as they will surely run into the firm opposition of the entire Chinese people including the people of Taiwan. To accomplish China's reunification is the trend of the time and common aspiration of the entire Chinese people across the Taiwan Strait. With the joint efforts of the entire Chinese people including the compatriots in Taiwan, the day will certainly come when China is reunified.

点击查看答案
第3题
给出以下语句:

class Parent{

String one,two;

public Parent(String a,String b){

one=a;

two=b;

}

public void print(){System.out.println(one);}

}

public class Child extends Parent{

public Child(String a,String b){

super(a,b);

}

public void print(){

System.out.println(one+"to"+two);

}

public static void main(String arg[]){

Parent P=new Parent("south","north");

Parent t=new Child("east","west");

P.print();

t.print();

}

}

下面的运行结果中正确的是______。

A.在编译时出错

B.south

east

C.south to north

east to west

D.south to north

east

E.south

east to west

点击查看答案
第4题
下列程序运行以后,会产生如下()异常。 a

A、SyntaxError

B、NameError

C、IndexError

D、KeyError

点击查看答案
第5题
下列错误信息中,( )是异常对象的名字。 Traceback (most recent call last): File "E:/教学/exp/异常/ex.py", line 1, in <module> 1/0 ZeroDivisionError: division by zero

A、ZeroDivisionError

B、NameError

C、IndexError

D、KeyError

点击查看答案
第6题
在try语句中没有任何错误信息时,一定不会执行( )语句。

A、try

B、else

C、finally

D、except

点击查看答案
账号:
你好,尊敬的用户
复制账号
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改
欢迎分享答案

为鼓励登录用户提交答案,简答题每个月将会抽取一批参与作答的用户给予奖励,具体奖励活动请关注官方微信公众号:简答题

简答题官方微信公众号

警告:系统检测到您的账号存在安全风险

为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!

微信搜一搜
简答题
点击打开微信
警告:系统检测到您的账号存在安全风险
抱歉,您的账号因涉嫌违反简答题购买须知被冻结。您可在“简答题”微信公众号中的“官网服务”-“账号解封申请”申请解封,或联系客服
微信搜一搜
简答题
点击打开微信