PFP191_-_SP_2024_-_Block_5_-_FE_1906.webp
A

PFP191_-_SP_2024_-_Block_5_-_FE_1906.webp

Multiple Choices
(Choose 1 answer)
If we open a file as follows:
xfile = open('mbox.txt')
What statement would we use to read the file one line at a time?
A. for line in xfile:
B. while (getline (xfile, line)) {
C. READ xfile INTO LINE
D. READ (xfile,*, END=10) line

Thông tin

Category
PFP191
Thêm bởi
Alphonse91
Ngày thêm
Lượt xem
853
Lượt bình luận
5
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom