更多二级Python试题
- 1键盘输入数字5,以下代码的输出结果是()。Try:N=input("请输入一个整数:")Defpow2(n):Returnn*nExcept:Print("程序执行错误")
- 2以下代码的输出结果是()。D={food:{cake:1,egg:5}}Print(d.get(cake,nothisfood))
- 3以下关于Python字典变量的定义中,错误的是()。
- 4对于序列s,以下选项对min(s)描述正确的是()。
- 5以下程序的输出结果是()。Ls=[12,44,23,46]Foriinls:Ifi==44:Print(foundit!i=,i)BreakElse:Print(notfoundit...)
- 6在Python语言中,使用for..in..方式形成的循环不能遍历的类型是()。