Python 2.x ã§å ¥åãåå¾ããæ¹æ³ããç´¹ä»ãã¾ãã Python ã§ã¯ãå ¥åãåå¾ããæ¹æ³ã大ããåã㦠2 種é¡ããã¾ãã raw_input() sys.stdin.readline() ```` readlines() ```` read() 以ä¸ãããããã«ã¤ãã¦é ã«è¦ã¦ããã¾ãã raw_input() raw_input() ã¯ã³ãã³ãã©ã¤ã³ããã®å ¥åãåå¾ããããã®é¢æ°ã§ããçµã¿è¾¼ã¿ã®é¢æ°ãªã®ã§ãã©ã¤ãã©ãªã import ããªãã¦ããã®ã¾ã¾ä½¿ãã¾ãã input_line1 = raw_input() print input_line1 + " is written" # => å ¥åãããæåå is written raw_input() ã§å¾ãããæååã¯ãå ¥åãããæååããèªåçã«æ¹è¡æåãåãé¤ãã¦ããã¾ãã ã¡ãªã¿ã« Python 3 ã§ã¯ãã® raw_
{{#tags}}- {{label}}
{{/tags}}