Python3.0 では print が関数になったけど help が不親切すぎないか?
>>> help(print) Help on built-in function print in module builtins: print(...) print(value, ..., sep=' ', end='\n', file=sys.stdout) Prints the values to a stream, or to sys.stdout by default. Optional keyword arguments: file: a file-like object (stream); defaults to the current sys.stdout. sep: string inserted between values, default a space. end: string appended after the last value, default a newline.
これだけ?
まぁ、必要十分か・・・
2.5では関数じゃないのでそもそもhelpがない
Python 2.5.2 (r252:60911, Nov 29 2008, 17:08:07) [GCC 4.0.1 (Apple Inc. build 5490)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> help(print) File "<stdin>", line 1 help(print) ^ SyntaxError: invalid syntax
Python3.01?
portでpython3.01って入るのかな?何回やっても(r30rc1:66499, Feb 2 2009, 03:19:48)なんですけど・・
追記
portのアクティブが切り替わってなかった。インストールしても勝手に切り替わらないなんて知らなかったよ。
Python 3.0 (r30:67503, Feb 28 2009, 18:36:53) [GCC 4.0.1 (Apple Inc. build 5490)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>>