id:Yoshiori said Python ã£ã¦ list ã®ä¸èº«ãåããã©ãã調ã¹ãã®ã£ã¦ä½ãããæ¹ããï¼ï¼ >>> a = [1, 2] >>> b = [2, 1] >>> a == b False ãã㧠True ãè¿ãæ¹æ³ ã§ãåã®è¿ç: >>> set([1, 2]) == set([2, 1]) True åããã®ãè¤æ°åãã£ã¦ãã®åæ°ã§åºå¥ããããå ´åãã¤ã¾ã [1, 2]ã¨[1, 2, 2]ã¯å¥ç©ã¨ã¿ãªãããã£ã¦å ´åã¯sortedã§ã§ãã >>> set([1, 2, 1]) == set([2, 1, 2]) True >>> sorted([1, 2, 1]) == sorted([2, 1, 2]) False ã¾ããã§ãããããæ¯è¼ãé »ç¹ã«è¡ããããã ã¨ããã¨ããªã¹ãã£ã¦ãã¼ã¿æ§é ã§æã£ã¦ããã®ãåççãããªãå¯è½æ§ãèããããããç¹ã«ãªã¹ããã§ããæã«ã¯æ¯
{{#tags}}- {{label}}
{{/tags}}