-->
当前位置:首页 > 题库

单选题:执行如下代码后,输出是()```x,y,t = 1,0,-1try: t=x//y print('ok!')exce

Luz5年前 (2021-05-10)题库2232
执行如下代码后,输出是()

```
x,y,t = 1,0,-1
try:
t=x//y
print('ok!')
except:
print('exception')
finally:
print('finally')

print(t)
```
@[C](2)

A. ok!

finally

1

B. exception

-1

C. exception

finally

-1

D. exception

finally

1



A.ok!

finally

1

B.exception

-1

C.exception

finally

-1

D.exception

finally

1


答案:C