Python study notes function [03]

3.1 function statements and arguments

def function name (parameter)

  Function body

Note: After the function call is complete, the parameter variable is destroyed.

3.2 The return value and return statement

3.3 None value

None is the unique value NoneType type.

Behind the scenes, a function without a return statement, Python will add return None (like, for the end and while loops plus implicitly continue) on the end of the function

3.4 Keyword parameters and print ()

Keyword arguments by keywords and parameters composed of.

print ( 'Hello Word'), behind the print ( 'Hello Word', end = '\ n', sep = '')

Guess you like

Origin www.cnblogs.com/wooluwalker/p/11621753.html