int([x[, base]]). Square brackets in functions in Python documentation? [duplicate]
问题 This question already has answers here : What do square brackets, “[]”, mean in function/class documentation? (4 answers) Closed 4 years ago . What is the meaning of the square brackets inside the round brackets of a function in the Python documentation? E.g.: help( [ object ] ) or int( [ x [ , base ]] ) 回答1: Everything that is in square brackets is optional, i.e. you can omit it. If the square brackets contain more than 1 argument, you can't choose which ones to omit, you must either specify