题解 | #网页的生成#

网页的生成

https://www.nowcoder.com/practice/eafb4afa3d504fcaadf313bdd4b90148

def hight_convert(origin_numberlist):#定义函数,参数为输入的字符串
    new_list=origin_numberlist.split( )#将字符数串拆分为列表
    print(eval(new_list[0])*2,'\n',eval(new_list[1])*2,sep='')#先将字符串转化为数值型的变量再进行运算,#print函数里的sep=“”是为了换行后左对齐

hight_convert(input())#调用函数

全部评论

相关推荐

点赞 收藏 评论
分享
牛客网
牛客企业服务