01/10/2018, 16:54

2 dòng print không in được kết quả

from sys import argv

scripts, inputfile= argv

def intatca(f):
	print f.read()

def inmotdong(f):
	print f.readline()

def intatca2(f):
	print f.readlines()

hello= open(inputfile)
print'in tat ca'
intatca(hello)
#1
print'in mot dong'
inmotdong(hello)
#2
print'in tat ca '
intatca2(hello)

cho em hỏi code như vầy chạy dc cái print in tất cả còn ở chỗ cái #1#2 không chạy dc mà chỉ in dc hai cái prin mà ko in dc dòng nào inputfile ạ

aU sUd viết 19:07 ngày 01/10/2018

Markdown code với output nha bạn. Dùng 3 dấu ` trước và sau đoạn code nha

Bài liên quan
0