python补充代码题目及答案.docx

python补充代码题目及答案

基础语法补充(共15题,每题2分,共30分)

1.a,b=b,a

2.int(s)

3.x2+y3

4.n%2==0

5.index,item

6.i=10

7.,.join(lst)

8.xinlst

9.nifn0else-n

10.list(dict_.keys())

11.round(sum(lst)/len(lst),2)

12.range(1,i+1)

13.s.lower()

14.(year%4==0andye

文档评论(0)

1亿VIP精品文档

相关文档