Assignment statements are used to (re)bind names to values and to modify attributes or items of mutable objects:
assignment_stmt::= (target_list"=")+ (starred_expression|yield_expression)
target_list ::=target(","target)* [","]
target ::=identifier
| "(" [target_list] ")"
| "[" [target_list] "]"
|attributeref
|subscription
|slicing
| "*"target
网友评论