题库 Python题库 题目列表 执行如下Python代码后,结果是?( ) def...
单选题

执行如下Python代码后,结果是?( )  

def inverse(s,n=0):    while s:
     n = n * 10 + s % 10
     s = s // 10
   return n
 print(inverse(456,123))
A.

654123

B.

123456

C.

123654

D.

654321

题目信息
2021年 9月 选择题
100%
正确率
0
评论
22
点击