使用当前浏览器访问考试宝,无法享受最佳体验,推荐使用 Chrome 浏览器进行访问。
更新时间: 试题数量: 购买人数: 提供作者:
有效期: 个月
章节介绍: 共有个章节
我的错题 (0道)
我的收藏 (0道)
我的斩题 (0道)
我的笔记 (0道)
顺序练习 0 / 0
随机练习 自定义设置练习量
题型乱序 按导入顺序练习
模拟考试 仿真模拟
题型练习 按题型分类练习
易错题 精选高频易错题
学习资料 考试学习相关信息
def exchange ( a , b ):
a,b=b,a
return ( a , b )
x =10
y =20
x , y = exchange ( x , y )
print ( x , y )(4.0分)
def f ( n , s =0):
n1= n ; s = s + n //2
n = n //2+ n %2
if n>1:
return (n1-n)+ f ( n )
else :
return 1
n =3
print ( f ( n ))(4.0分)
def ancient _ poetry ():
print ("今为羌笛出塞声,使我三军泪如雨。")
for i in range (0,10):
print ("*", end =")
ancient _ poetry ()(4.0分)
def Func ( lst ):
return lst + [3]
a =[1,2]
Func( a )
print ( a )(4.0分)
Ist +=[3]
return lst
print ( Func ( a ))(4.0分)
def content(a,b):
if a>0 and b>0:
print ( a % b )
print ( a + b )
content(9,2)
content (-1,3)
def calc _ exchange _ rate ( amt , source , target =' USD '):
if source ==" CNY " and target ==" USD ":
result = amt /6.3486
return result
r = calc _ exchange _ rate (100," CNY ")
print ( r )(4.0分)
def calc _ exchange _ rate ( amt ,target ='CNY',source):
print ( r )
def health _ check ( name , age , height , weight , hr ):
print (" good ")
health _ check ( name =" jo ", age ="18", height =170,weight =80.5, hr =70)(4.0分)
def info ( content , poem , name ="杜甫"):
print ("(p1)-(p2):(p3}".
format (p1= name ,p2= poem ,p3= content ))
info ( poem ="春望", content ="林暗草惊风")(4.0分)