Xem thảo luận
Cải thiện bài viết
Lưu bài viết
Xem thảo luận
Cải thiện bài viết
Lưu bài viết
Đọc
When a file operation
fails for an I/O-related reason, the exception IOError is raised. This includes situations where the operation is not defined for some reason, like seek[] on a tty device or writing a file opened for reading.
Files have the following methods:
- Bàn luậnOpens a file in given access mode.
open[file_address, access_mode]
Một đối tượng tệp cho phép chúng tôi sử dụng, truy cập và thao tác tất cả các tệp có thể truy cập của người dùng. Người ta có thể đọc và viết bất kỳ tệp nào như vậy. Khi hoạt động tệp không thành công vì lý do liên quan đến I/O, ngoại lệ ioError được nêu ra. Điều này bao gồm các tình huống trong đó hoạt động không được xác định vì một số lý do, như Seek [] trên một thiết bị TTY hoặc viết một tệp được mở để đọc. Các phương thức có các phương thức sau:
There are different types of access_modes:r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
Open []: Mở một tệp ở chế độ truy cập đã cho .________ 0
- Ví dụ về việc truy cập một tệp: một tệp có thể được mở với hàm tích hợp có tên Open []. Hàm này có trong địa chỉ tệp và access_mode và trả về một đối tượng tệp. Có các loại access_modes khác nhau:: It reads the entire file and returns it contents in the form of a string. Reads at most size bytes from the file [less if the read hits EOF before obtaining size bytes]. If the size argument is negative or omitted, read
all data until EOF is reached.
Khi bạn thêm 'B' vào các chế độ truy cập, bạn có thể đọc tệp ở định dạng nhị phân thay vì định dạng văn bản mặc định. Nó được sử dụng khi tệp được truy cập không có trong văn bản.
Đọc [[kích thước]]: Nó đọc toàn bộ tệp và trả về nội dung của nó dưới dạng một chuỗi. Đọc ở hầu hết các byte có kích thước từ tệp [ít hơn nếu số lần đọc truy cập EOF trước khi có được kích thước byte]. Nếu đối số kích thước là âm hoặc bị bỏ qua, hãy đọc tất cả dữ liệu cho đến khi đạt được EOF.
r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
3r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
4r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
5 f
=
open
[__file__,
'r'
__: It reads the first line of the file i.e till a newline character or an EOF in case of a file having a single line and returns a string. If the size argument is present and non-negative, it is a maximum byte count [including the trailing newline] and an incomplete line may be returned. An empty string is returned only when EOF is encountered immediately.Khi bạn thêm 'B' vào các chế độ truy cập, bạn có thể đọc tệp ở định dạng nhị phân thay vì định dạng văn bản mặc định. Nó được sử dụng khi tệp được truy cập không có trong văn bản.
Đọc [[kích thước]]: Nó đọc toàn bộ tệp và trả về nội dung của nó dưới dạng một chuỗi. Đọc ở hầu hết các byte có kích thước từ tệp [ít hơn nếu số lần đọc truy cập EOF trước khi có được kích thước byte]. Nếu đối số kích thước là âm hoặc bị bỏ qua, hãy đọc tất cả dữ liệu cho đến khi đạt được EOF.
r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
3r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
4r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
5f
=
open
[__file__,
'r'
__: It reads the entire file line by line and updates each line to a list which is returned.Read until EOF using readline[] and return a list containing the lines thus read. If the optional sizehint argument is present, instead of reading up to EOF, whole lines totalling approximately sizehint bytes [possibly after rounding up to an internal buffer size] are read.Khi bạn thêm 'B' vào các chế độ truy cập, bạn có thể đọc tệp ở định dạng nhị phân thay vì định dạng văn bản mặc định. Nó được sử dụng khi tệp được truy cập không có trong văn bản.
Đọc [[kích thước]]: Nó đọc toàn bộ tệp và trả về nội dung của nó dưới dạng một chuỗi. Đọc ở hầu hết các byte có kích thước từ tệp [ít hơn nếu số lần đọc truy cập EOF trước khi có được kích thước byte]. Nếu đối số kích thước là âm hoặc bị bỏ qua, hãy đọc tất cả dữ liệu cho đến khi đạt được EOF.
r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
3r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
4r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
5f
=
open
[__file__,
'r'
__: It writes the contents of string to the file. It has no return value. Due to buffering, the string may not actually show up in the file until the flush[] or close[] method is called.text
=
r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
0r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
1]
Readline [[kích thước]]: Nó đọc dòng đầu tiên của tệp i.e cho đến một ký tự dòng mới hoặc EOF trong trường hợp tệp có một dòng duy nhất và trả về một chuỗi. Nếu đối số kích thước có mặt và không âm, thì đó là số byte tối đa [bao gồm cả dòng mới] và một dòng không hoàn chỉnh có thể được trả về. Một chuỗi trống chỉ được trả về khi EOF gặp phải ngay lập tức.
[__file__,
3r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
5text
=
f
4f
5]
READLINES [[sizehint]]: Nó đọc toàn bộ dòng tệp theo từng dòng và cập nhật từng dòng vào một danh sách được trả về. Đọc cho đến khi EOF sử dụng readline [] và trả về một danh sách chứa các dòng do đó đọc. Nếu đối số SizeHint tùy chọn có mặt, thay vì đọc lên đến EOF, toàn bộ các dòng có tổng số các byte Sizehint [có thể sau khi làm tròn lên kích thước bộ đệm bên trong] được đọc.
text
=
=
8=
9]
'r'
4r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
5Viết [chuỗi]: Nó ghi nội dung của chuỗi vào tệp. Nó không có giá trị trả lại. Do bộ đệm, chuỗi có thể không thực sự hiển thị trong tệp cho đến khi phương thức xả [] hoặc đóng [] được gọi.
text
=
=
8=
9]
'r'
4r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
5Viết [chuỗi]: Nó ghi nội dung của chuỗi vào tệp. Nó không có giá trị trả lại. Do bộ đệm, chuỗi có thể không thực sự hiển thị trong tệp cho đến khi phương thức xả [] hoặc đóng [] được gọi.
f
=
open
[__file__,
open
8]
'r'
4r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
5[__file__,
0=
[__file__,
2text
=
=
8=
9]
'r'
4r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
5- Viết [chuỗi]: Nó ghi nội dung của chuỗi vào tệp. Nó không có giá trị trả lại. Do bộ đệm, chuỗi có thể không thực sự hiển thị trong tệp cho đến khi phương thức xả [] hoặc đóng [] được gọi.: It is a sequence of strings to the file
usually a list of strings or any other iterable data type. It has no return value.
[__file__,
0=
[__file__,
2Nhiều ví dụ hơn ở các chế độ khác nhau:
r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
08r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
5 f
=
open
[__file__,
[__file__,
9__: It returns an integer that tells us the file object’s position from the beginning of the file in the form of bytesKhi bạn thêm 'B' vào các chế độ truy cập, bạn có thể đọc tệp ở định dạng nhị phân thay vì định dạng văn bản mặc định. Nó được sử dụng khi tệp được truy cập không có trong văn bản.
Đọc [[kích thước]]: Nó đọc toàn bộ tệp và trả về nội dung của nó dưới dạng một chuỗi. Đọc ở hầu hết các byte có kích thước từ tệp [ít hơn nếu số lần đọc truy cập EOF trước khi có được kích thước byte]. Nếu đối số kích thước là âm hoặc bị bỏ qua, hãy đọc tất cả dữ liệu cho đến khi đạt được EOF.
r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
3r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
22r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
5f
=
open
[__file__,
'r'
__: It is used to change the file object’s position. Offset indicates the number of bytes to be moved. from_where indicates from where the bytes are to be moved.Khi bạn thêm 'B' vào các chế độ truy cập, bạn có thể đọc tệp ở định dạng nhị phân thay vì định dạng văn bản mặc định. Nó được sử dụng khi tệp được truy cập không có trong văn bản.
Đọc [[kích thước]]: Nó đọc toàn bộ tệp và trả về nội dung của nó dưới dạng một chuỗi. Đọc ở hầu hết các byte có kích thước từ tệp [ít hơn nếu số lần đọc truy cập EOF trước khi có được kích thước byte]. Nếu đối số kích thước là âm hoặc bị bỏ qua, hãy đọc tất cả dữ liệu cho đến khi đạt được EOF.
r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
3r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
36f
=
open
[__file__,
'r'
__Đọc [[kích thước]]: Nó đọc toàn bộ tệp và trả về nội dung của nó dưới dạng một chuỗi. Đọc ở hầu hết các byte có kích thước từ tệp [ít hơn nếu số lần đọc truy cập EOF trước khi có được kích thước byte]. Nếu đối số kích thước là âm hoặc bị bỏ qua, hãy đọc tất cả dữ liệu cho đến khi đạt được EOF.
r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
3r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
36r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
5f
=
open
[__file__,
'r'
__: Flush the internal buffer, like stdio‘s fflush[]. It has no return value. close[] automatically flushes the data but if you want to flush the data before closing the file then you can use this method.Khi bạn thêm 'B' vào các chế độ truy cập, bạn có thể đọc tệp ở định dạng nhị phân thay vì định dạng văn bản mặc định. Nó được sử dụng khi tệp được truy cập không có trong văn bản.
Đọc [[kích thước]]: Nó đọc toàn bộ tệp và trả về nội dung của nó dưới dạng một chuỗi. Đọc ở hầu hết các byte có kích thước từ tệp [ít hơn nếu số lần đọc truy cập EOF trước khi có được kích thước byte]. Nếu đối số kích thước là âm hoặc bị bỏ qua, hãy đọc tất cả dữ liệu cho đến khi đạt được EOF.
r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
62f
=
open
[__file__,
'r'
__r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
5text
=
r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
0r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
1]
: Returns the integer file descriptor that is used by the underlying implementation to request I/O operations from the operating system.f
=
open
[__file__,
'r'
__r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
3r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
73r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
5- isatty []: Trả về true nếu tệp được kết nối với thiết bị tty [giống như] và sai nếu không.: Returns True if the file is connected to a tty[-like] device and False if not.
f
=
open
[__file__,
'r'
__r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
3r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
82r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
5 - Tiếp theo []: Nó được sử dụng khi một tệp được sử dụng làm trình lặp. Phương pháp được gọi là nhiều lần. Phương thức này trả về dòng đầu vào tiếp theo hoặc tăng lần dừng tại EOF khi tệp được mở để đọc [hành vi không được xác định khi mở để viết].: It is used when a file is used as an iterator. The method is called repeatedly. This method returns the next input line or raises StopIteration at EOF when the file is open for reading[ behaviour is undefined when opened for writing].
f
=
open
[__file__,
'r'
__r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
90r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
91r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
92r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
93r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
94r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
95r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
96r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
97r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
3r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
99r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
95f
01f
02r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
91r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
92r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
5 - cắt ngắn [[kích thước]]: cắt ngắn kích thước tệp. Nếu đối số kích thước tùy chọn có mặt, tệp bị cắt theo [nhiều nhất] kích thước đó. Kích thước mặc định cho vị trí hiện tại. Vị trí tệp hiện tại không thay đổi. Lưu ý rằng nếu một kích thước được chỉ định vượt quá kích thước hiện tại của tệp, kết quả phụ thuộc vào nền tảng: các khả năng bao gồm tệp có thể không thay đổi, hãy tăng lên kích thước được chỉ định như thể không được lấp đầy hoặc tăng lên kích thước được chỉ định với nội dung mới không xác định.: Truncate the file’s size. If the optional size argument is present, the file is truncated to [at most] that size. The size defaults to the current position. The current file position is not changed. Note that if a specified size exceeds the file’s current size, the result is platform-dependent: possibilities include that the
file may remain unchanged, increase to the specified size as if zero-filled, or increase to the specified size with undefined new content.
f
=
open
[__file__,
open
8]
f
12r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
1]
r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
5 - Đóng []: Được sử dụng để đóng một tệp mở. Một tập tin đóng không thể được đọc hoặc viết thêm nữa.: Used to close an open file. A closed file cannot be read or written any more.
f
=
open
[__file__,
'r'
__r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
5 - Attributes::
- Đóng: Trả về một boolean chỉ ra trạng thái hiện tại của đối tượng tệp. Nó trả về true nếu tệp được đóng và sai khi tệp được mở.: returns a boolean indicating the current state of the file object. It returns true if the file is closed and false when the file is open.
- Mã hóa: Mã hóa mà tệp này sử dụng. Khi các chuỗi Unicode được ghi vào một tệp, chúng sẽ được chuyển đổi thành chuỗi byte bằng cách sử dụng mã hóa này.: The encoding that this file uses. When Unicode strings are written to a file, they will be converted to byte strings using this encoding.
- Chế độ: Chế độ I/O cho tệp. Nếu tệp được tạo bằng hàm tích hợp Open [], đây sẽ là giá trị của tham số chế độ.: The I/O mode for the file. If the file was created using the open[] built-in function, this will be the value of the mode parameter.
- Tên: Nếu đối tượng tệp được tạo bằng Open [], tên của tệp.: If the file object was created using open[], the name of the file.
- Newlines: Một đối tượng tệp đã được mở trong chế độ Universal Newline có thuộc tính này phản ánh quy ước mới được sử dụng trong tệp. Giá trị cho thuộc tính này là \ r, \ \ n ,,: A file object that has been opened in universal newline mode have this attribute which reflects the newline convention used in the file. The value for this attribute are “\r”, “\n”, “\r\n”, None or a tuple containing all the newline types seen.
- SEFTSPACE: Đây là một boolean cho biết liệu một ký tự không gian cần được in trước một giá trị khác khi sử dụng câu lệnh in.: It is a boolean that indicates whether a
space character needs to be printed before another value when using the print statement.
f
=
open
[__file__,
=
2r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
3f
30r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
3f
32r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
3f
34r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
3f
36r: Opens a file for reading only r+: Opens a file for both reading and writing w: Opens a file for writing only w+: Open a file for writing and reading. a: Opens a file for appending a+: Opens a file for both appending and reading
3f
38
Bài viết liên quan: Đọc và viết vào các tệp văn bản trong Python
Reading and Writing to text files in Python
Tham khảo: //docs.python.org/2.4/lib/bltin-file-objects.htmlthis Bài viết được đóng góp bởi Sri Sanketh Uppalapati. Nếu bạn thích GeekSforGeeks và muốn đóng góp, bạn cũng có thể viết một bài viết bằng cách sử dụng PROPTENT.GeekSforGeeks.org hoặc gửi bài viết của bạn đến. Xem bài viết của bạn xuất hiện trên trang chính của GeekSforGeek và giúp các chuyên viên máy tính khác.
//docs.python.org/2.4/lib/bltin-file-objects.html
This article is contributed by Sri Sanketh Uppalapati. If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to . See your article appearing on the
GeeksforGeeks main page and help other Geeks.
Vui lòng viết nhận xét nếu bạn tìm thấy bất cứ điều gì không chính xác, hoặc bạn muốn chia sẻ thêm thông tin về chủ đề được thảo luận ở trên.