测评会员优惠活动进行中 · 开通 VIP,有效期内测评不限次 VIP 优惠中 · 测评不限次 立即查看

A59048. 有如下Python的自定义函数,执行该程序后,结果是?( ) def calc(x,y,op): return eval(str(x)+op+str(y)) print(calc(3,5,'+'))

单选题

题目描述

有如下Python的自定义函数,执行该程序后,结果是?( )  

  def  calc(x,y,op):  

     return eval(str(x)+op+str(y))   

  print(calc(3,5,'+')) 

选项(单选)