class Solution:
def multiply(self, num1, num2):
if (num1 and num2) :
a = int(num1)
b = int(num2)
c = a * b
d = str(c)
return d
只是字符串的转换,很简单?
class Solution:
def multiply(self, num1, num2):
if (num1 and num2) :
a = int(num1)
b = int(num2)
c = a * b
d = str(c)
return d
只是字符串的转换,很简单?