python like の背後にあるデザインパターンは何ですかinteractive shell
。サーバーでこれを行いたいのですが、多くのif - then- else
パターンになってしまいます。
たとえば、私が始めるpython interpreter
と、このようなものが得られます
Python 2.6.7 (r267:88850, Feb 2 2012, 23:50:20)
[GCC 4.5.3] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
>>> help
help の後、プロンプトが help に変わります
Welcome to Python 2.6! This is the online help utility.
If this is your first time using Python, you should definitely check out
the tutorial on the Internet at http://docs.python.org/tutorial/.
Enter the name of any module, keyword, or topic to get help on writing
Python programs and using Python modules. To quit this help utility and
return to the interpreter, just type "quit".
To get a list of available modules, keywords, or topics, type "modules",
"keywords", or "topics". Each module also comes with a one-line summary
of what it does; to list the modules whose summaries contain a given word
such as "spam", type "modules spam".
help>
read-eval loop
これはデザインの王様だと思います。