Concepts, denoted as an argument to a Python function as follows: str.find (sub [, start [, end]])

Can someone describe what happens syntactically in functions like functions str.find(sub[, start[, end]])? I do not understand what function arguments do or should be.

On the one hand, what is a design [, x]?

+5
source share
2 answers

This square notation is used to indicate optional arguments. You can omit them if you want, and thus invoke the default behavior. Optional arguments will always be described in the documentation.

, , , Python. Python. , .

+5

:

programmer.se

A Python. :

( , ) :: =. (|); . (*) ; , (+) , , ([]) ( , ). * + ; . . . ; .

+2

All Articles