空值也是False啊?我的思路是设空值是print hello world,但为什么不对?
def greet(x):
if x == False:
print 'Hello,World.'
else:
print 'Hello,',x+'.'
return x
greet()
greet('Bart')
def greet(x):
if x == False:
print 'Hello,World.'
else:
print 'Hello,',x+'.'
return x
greet()
greet('Bart')
2018-12-24
举报