@ltd
trong bài 15 của learnpythonhardway, phần study drill có bài tập số 6 như sau
Start python to start the Python shell, and use open from the prompt just like in this program. Notice how you can open files and run read on them from within python?
Tôi đã thử các lệnh open va read trong python shell nhưng không được, lỗi như sau 
c:\hocpython\hardway>python
Python 2.7.10 (default, May 23 2015, 09:40:32) [MSC v.1500 32 bit (Intel)] on wi
n32
Type “help”, “copyright”, “credits” or “license” for more information.read
Traceback (most recent call last):
File “”, line 1, in
NameError: name ‘read’ is not definedopen()
Traceback (most recent call last):
File “”, line 1, in
TypeError: Required argument ‘name’ (pos 1) not foundread()
Traceback (most recent call last):
File “”, line 1, in
NameError: name ‘read’ is not defined
P/s : Tôi đã thử đưa tham số vào open vẫn không được : open(“C:\hocpython\hardway\ex15_example.txt”)
Xin giải thích giúp mình. Tks !
83% thành viên diễn đàn không hỏi bài tập, còn bạn thì sao?