题解 | #网页的生成#

网页的生成

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())#调用函数

全部评论

相关推荐

点赞 评论 收藏
分享
酷酷的喜马拉雅山:感觉这比一直在初筛不动的好多了
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务