programming-languageコマンドライン関連yNを聞く(askyes,no)On this pageyNを聞く(askyes,no) Python pyanswer = input("進めますか? [y/N]: ") # Python3 pytry: answer = input("進めますか? [y/N]: ")except KeyboardInterrupt: print('\ncancelled..') pyanswer = input_raw("進めますか? [y/N]: ") # Python2 Python2 にも input() はあるが、これは eval な動作をする Bash bashread -p "進めますか? [y/N]: " answer 📩 ご意見・ご感想はこちらから