首页 > 财会类考试
题目内容 (请给出正确答案)
[单选题]

light = '太阳光'def fun():light = '灯光'根据上述代码显示,以下说法正确的是

A.灯光是局部变量 太阳光是全局变量

B.太阳光是局部变量 灯光全局变量

C.全部都是局部变量

D.全部都是全局变量

答案
收藏

A、灯光是局部变量 太阳光是全局变量

如果结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能还需要:
您的账号:
发送账号密码至手机
发送
安装优题宝APP,拍照搜题省时又省心!
更多“light = '太阳光'def fun():light =…”相关的问题
第1题
阅读以下程序,填写运行结果()。def fun(a): return a+1 def f(b): print(b+1) f(fun(3))

点击查看答案
第2题
阅读以下程序,填写运行结果()。def fun(a): return a+1 def f(b): return b*2 print(fun(3)+f(3))

点击查看答案
第3题
编写自定义R函数采用的语句是()

A.def

B.if

C.function

D.fun

点击查看答案
第4题
下面代码的输出结果是()def fun(x,y,z):u = x+y-zprint(u)fun(1+2j, 5, 4-j)

A.NameError

B.(2+3j)

C.2

D.3j

点击查看答案
第5题
EDriving cars, trucks and motorcycles is an important part of our lives. We do it every da
y to get to work, to school or to friends’ houses.

Driving can be very convenient, but can also cause many problems. Waiting in line at a red light, a driver may get impatient and decide just to drive right through it. If another car is coming from the other direction, there might be a terrible accident. Cutting another car off can make its driver angry, so that driver cuts off someone else. Pretty soon everybody is angry, and impatient.

Traffic accidents declare millions of lives every year worldwide. In Taiwan alone, over seven people are killed in accidents every day. The annual death rate (年死亡率) from traffic accidents in Taiwan is twice that of Japan.

To allow traffic to move smoothly and safely, everybody must follow the rules. Before you drive, learn all the traffic laws. That way of driving is safe, convenient and even fun!

第51题:The word “ convenient “ in the passage means ________.

[A] handy, easy to do

[B] that can be changed

[C] fond of drinking and merry-making

[D] carriages or other trucks

点击查看答案
第6题
已知直角△ABC∽△DEF,则△DEF也为直角三角形()
点击查看答案
第7题
平面ABC平行于平面DEF,则平面ABC内任意一条直线都平行于平面DEF()
点击查看答案
第8题
def是定义函数的关键字。()
点击查看答案
第9题
△ABC∽△DEF,且相似比为2:1,△ABC的面积为8,则△DEF的面积为()

A.2

B.4

C.8

D.16

点击查看答案
第10题
文件名:ABC123.DEF.XYZ的扩展名是()

A.ABC

B.123

C.DEF

D.XYZ

点击查看答案
退出 登录/注册
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改