执行以下程序,输入"fish520",输出结果是()。W=input()Forxinw:If0<=x<=9:ContinueElse:W.replace(x,)Print(w)
(A)520
(B)fish520
(C)fish
(D)520fish
查看解析
参考答案
继续答题:下一题


更多二级Python试题
- 1变量sstr=天使的翅膀带着我在尘世飞翔,执行下列选项,不能输出翅膀的是()。
- 2二维列表ls=[[9,8],[7,6],[5,4],[3,2],[1,0]],能够获得数字4的选项是()。
- 3以下程序的输出结果是()。X=10Y=0If(x>5)or(x/y>5):Print(Right)Else:Print(Wrong)
- 4以下关于Python语言的描述中,正确的是()。
- 5执行以下程序,输入"fish520",输出结果是()。W=input()Forxinw:If0<=x<=9:ContinueElse:W.replace(x,)Print(w)
- 6以下程序的输出结果是()。Ss=set("htslbht")Sorted(ss)Foriinss:Print(i,end=)