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