We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10e5d97 commit 57b1fdcCopy full SHA for 57b1fdc
python6/3.md
@@ -9,7 +9,7 @@
9
10
defsum(num1,num2):
11
# 两数之和
12
-ifnot (isinstance (num1,(int ,float)) orisinstance (num2,(int ,float))):
+ifnot (isinstance (num1,(int ,float)) andisinstance (num2,(int ,float))):
13
raiseTypeError('参数类型错误')
14
return num1+num2
15
0 commit comments