为什么反馈会出现None
def greet(n = 'world.'):
print('Hello,' + n)
print(greet())
print(greet('Bob'))
结果却是:
‘Hello, world.’
None
'Hello,Bob'
None
问:None是怎么出现的
def greet(n = 'world.'):
print('Hello,' + n)
print(greet())
print(greet('Bob'))
结果却是:
‘Hello, world.’
None
'Hello,Bob'
None
问:None是怎么出现的
2020-10-13
举报