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

下面代码的输出结果是() def exchange(a,b): a,b = b,a return (a,b) x = 10 y = 20 x,y = exchange(x,y) print(x,y)

A.20 10

B.20 20

C.10 10

D.20,10

提问人:网友shan00509 发布时间:2022-01-07
参考答案
查看官方参考答案
如搜索结果不匹配,请 联系老师 获取答案
网友答案
查看全部
  • · 有5位网友选择 B,占比41.67%
  • · 有3位网友选择 D,占比25%
  • · 有2位网友选择 C,占比16.67%
  • · 有2位网友选择 A,占比16.67%
匿名网友 选择了B
[120.***.***.56] 1天前
匿名网友 选择了B
[120.***.***.56] 1天前
匿名网友 选择了B
[120.***.***.56] 1天前
匿名网友 选择了B
[124.***.***.225] 1天前
匿名网友 选择了B
[124.***.***.225] 1天前
匿名网友 选择了B
[124.***.***.225] 1天前
匿名网友 选择了D
[112.***.***.91] 1天前
匿名网友 选择了D
[112.***.***.91] 1天前
匿名网友 选择了D
[112.***.***.91] 1天前
匿名网友 选择了D
[223.***.***.65] 1天前
匿名网友 选择了D
[223.***.***.65] 1天前
匿名网友 选择了D
[223.***.***.65] 1天前
匿名网友 选择了D
[51.***.***.216] 1天前
匿名网友 选择了A
[192.***.***.10] 1天前
匿名网友 选择了A
[209.***.***.164] 1天前
匿名网友 选择了B
[122.***.***.164] 1天前
匿名网友 选择了B
[113.***.***.179] 1天前
匿名网友 选择了C
[119.***.***.251] 1天前
匿名网友 选择了C
[152.***.***.142] 1天前
匿名网友 选择了B
[204.***.***.77] 1天前
加载更多
提交我的答案
登录提交答案,可赢取奖励机会。
更多“下面代码的输出结果是() def exchange(a,b)…”相关的问题
第1题
People are only able to exchange currencies in foreign exchange market.
点击查看答案
第2题
Which of the following is an example of arbitrage?
A.A firm sells a box of cereal at $10 when the average cost of producing it is $6.

B.Thomas buys a new stock issued by a firm on the stock exchange

C.A local salon charges 5 percent more for all its services than a competing salon in the same locality.

D.Romi buys a DVD from Walmart at $10 and sells it on eBay for $20.

点击查看答案
第3题
Write a letter for the principal to accept the agent's application of being sole agent after reading the following given letter.Dear Mr.Wang:

Our company is one of the leading companies in china ornaments retail business.We have oufiets throughout our England.We are interested in your products displayed at the exhibition Guangzhou fair and would like to know whether you could offer us a sole agency to retail your products in our country.

We are confident that there is a growing market for your products in this area, due to the increasing demand for china ornaments.

We operate on a 10% commission basis on net list prices, with an additional 3% del credere commission if required.We usually pay our principals by bill of exchange on a quarterly basis.

If you are interested in the above proposal, we will send our representative to discuss further details with you.We look forward to hearing from you soon.

Yours sincerely,

点击查看答案
第4题
A) scrape

B) scratch

C) explore

D) exploited

E) consent

F) consultant

G) bribe

H) positively

I) exchange

J) investigation

K) accounting

L) undiscovered

M) unveiled

N) shielded

O) negatively

In the past several years, many news stories about corporate greed have come to surface. The illegal practices of some executives have(1)impacted our economy. What makes this worse is that these executives seem to have the(2)of some political leaders. Some of the executives even(3)lawmakers. Recently a member of Congress from California was caught demanding gifts from interest groups in(4)for supporting new laws. A few top leaders in the government are under(5)for illegal activities. This doesn't even(6)the surface of the problem. A few years back a company made many purposeful(7)errors to fool investors. Many believe that one reason the problem became so big was that our nation's top leaders(8)the company. By the time the truth was(9), many innocent people had lost their entire savings. There seems to be more and more companies that(10)the public's trust for their own interests. This calls for laws and strict regulations to put the illegal practice to an end.

点击查看答案
第5题
下面代码的输出结果是( ) def func(a,b): return a>>b s = func(5,2) print(s)

A、20

B、12

C、1

D、6

点击查看答案
第6题
下面代码的执行结果是( ) >>> def area(r, pi = 3.14159): return pi * r * r >>> area(3.14, 4)

A、出错

B、50.24

C、39.4384

D、无输出

点击查看答案
第7题
下面代码的执行结果是( ) >>> def area(r, pi = 3.14159): return pi * r *r >>> area(pi = 3.14, r = 4)

A、出错

B、50.24

C、39.4384

D、无输出

点击查看答案
第8题
关于函数局部变量和全局变量的使用规则,以下选项中描述错误的是( )

A、对于基本数据类型的变量,无论是否重名,局部变量与全局变量不同

B、return不可以传递任意多个函数局部变量返回值

C、对于组合数据类型的变量,如果局部变量未真实创建,则是全局变量

D、可以通过global保留字在函数内部声明全局变量

点击查看答案
第9题
给出如下代码: ls = ["car","truck"] def funC(a): ls.append(a) return funC("bus") print(ls) 以下选项中描述错误的是( )

A、ls.append(a) 代码中的ls是全局变量

B、funC(a)中的a为非可选参数

C、ls.append(a) 代码中的ls是列表类型

D、执行代码输出结果为['car', 'truck']

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

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

简答题官方微信公众号

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

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

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