01/10/2018, 10:11

Thui tui firgue out rùi

#-*- coding:UTF-8 -*-;
from sys import argv;

script , text_name = argv;

print"Frist time u will see %s by %s script:"%(text_name , script );
text = open(text_name);
print text.read();

promt ="""Please Text ".txt" flie link again
>> """;
text_name2 =raw_input(promt);#test name lần 2
text_again =open(text_name2);
print"Here is what u see when open %s :"%text_name2;
print text_again.read();

Chạy thử trên powershell >python Exe15.py Text.txt
Nó print ra :built-in method read of file object at 0x01864860
Mình biết rùi thiếu cặp dấu ngoặc tròn ở read thui thanks nha hơi rảnh B)

Bài liên quan
0