僕の備忘録(PC、UN*X、ネットワーク関連が中心)なんです。
自分の書いたところは適当(な時とか)に書き換えますので御了承を。
$ python3 Python 3.1.2 (r312:79147, Jun 17 2010, 22:23:31) [GCC 4.3.4] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> list(time.localtime()) Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name 'time' is not defined >>> import date Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named date >>> import time >>> list(time.localtime()) [2011, 8, 7, 11, 21, 8, 6, 219, 0]
2.xでもエラーになったけど、 "import date"は何か間違えていたかも。
リンクはご自由にどうぞ。でもURLや内容が変った場合はあしからず。