30/09/2018, 23:07
Ai giúp sửa lỗi này vs
can’t open file ‘ex1’: [Errno 2] No such file or directory
Bài liên quan
can’t open file ‘ex1’: [Errno 2] No such file or directory
Bạn cd đến thư mục chứa file chưa?
rồi mà no vẫn có lỗi đấy :((
bạn dùng powershell à? cd đến thư mục rồi thì gõ lệnh python ex1.py là ok mà
PS C:\Users\Windows\Saved Games\thumucmoi> python ex1.py
File “ex1.py”, line 7
print ‘I "said’ do not touch this.’
^
SyntaxError: invalid syntax
ủa lệnh hình như mình viết đúng mà sao nó cứ ra lỗi này nhỉ:confused:
Mình nghĩ nên viết thế này:
print 'I said: "You dont ..."'
viết vậy vẫn ra lỗi đấy.
PS C:\Users\Windows\Saved Games\thumucmoi> python ex1.py
File “ex1.py”, line 7
print ‘i said:“you don’t touch this”’
^
SyntaxError: invalid syntax
Bạn thử cái này nhé:
mình chạy dc r tks nhiều nha:smiley:
Bạn bấm chọn câu trả lời đúng để đánh dấu topic đã solved nhé