题解 | a 加 b 问题(函数)

a 加 b 问题(函数)

https://www.nowcoder.com/practice/583c33b4f5f24763a9b67cccd6e386a7

#
# 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可
#
# 实现求两个参数的和
# @param Integer1 int整型 
# @param Integer2 int整型 
# @return int整型
#
class Solution:
    def addTwoInteger(self , Integer1: int, Integer2: int) -> int:
        a,b=Integer1,Integer2
        c=a+b
        return c
print(Solution())

全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

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