INDEX ã³ã¼ãã£ã³ã°ã¹ã¿ã¤ã« ãã¡ã¤ã«æä½ æ¥ä»ã»æå» ãã®ä» ãã®ä» .pycãä½ããããªã ç°å¢å¤æ°PYTHONDONTWRITEBYTECODEãè¨å®ããã¨ã.pycããã³.pyoãã¡ã¤ã«ãä½æãããªããªããå¤ã¯ä½ã§ãããã®ã§ã export PYTHONDONTWRITEBYTECODE=1 ãªã©ã¨æ¸ãã¦ããã°ããã è¾æ¸ï¼dictï¼ã®ã½ã¼ã ãã¼ï¼keyï¼ã®é ã«åãåºã >>> score = {'Jack':300, 'Mike':200, 'Jane':100} >>> for (k, v) in sorted(score.items()): ... k, v ... ('Jack', 300) ('Jane', 100) ('Mike', 200) å¤ï¼valueï¼ã®é ã«åãåºã >>> for (k, v) in sorted(score.items(), key=l
{{#tags}}- {{label}}
{{/tags}}