| ???? Python ??? | ??5?? ?????????? | |
|---|---|---|
| ???? | ?????????? | ???? |
????????????2 + 3 * 4?????????????????????????????????????????????????????????????????????????¦Æ?????????????????????????????
????????????Python?????????????????????????????????????????????????????????????????¦Æ????????????§µ?Python???????????§ß??????????????????????????????????????
????????????Python?¦Ï?????§Ö????????????????????????????????????????????????????????????????????????????????????????????????????????????????????íà2 + (3 * 4)?????2 + 3 * 4??????????????????????????????????????¨´????????2 + (3 + 4)????
| ????? | ???? |
|---|---|
| lambda | Lambda???? |
| or | ???????? |
| and | ???????? |
| not x | ????????? |
| in??not in | ??????? |
| is??is not | ??????? |
| <??<=??>??>=??!=??== | ??? |
| | | ??¦Ë?? |
| ^ | ??¦Ë??? |
| & | ??¦Ë?? |
| <<??>> | ??¦Ë |
| +??- | ???????? |
| *??/??% | ?????????????? |
| +x??-x | ?????? |
| ~x | ??¦Ë??? |
| ** | ??? |
| x.attribute | ????¦Ï? |
| x[index] | ?¡À? |
| x[index:index] | ???? |
| f(arguments...) | ???????? |
| (experession,...) | ?????????? |
| [expression,...] | ?§Ò???? |
| {key:datum,...} | ?????? |
| 'expression,...' | ???????? |
???????????§ß???????????????????????§ß????
????????????§Ö?????????? ???????? ?????íà+??-??????????????
???????????????????????????????????????????????????????????????????????????????????????íà?????????????????¨¹???????????????????§Õ??????(2 + 3) * 4???????
?????????????????????????????????????????????????????????????íà2 + 3 + 4???????(2 + 3) + 4???§»?¿x?????????????????????????????????a = b = c???????a = (b = c)??
| ???? | ????? | ???? |
|---|---|---|
| ????? | ??? | ???? |