Advertisements
Advertisements
प्रश्न
Tabulate the different modes with their meaning.
थोडक्यात उत्तर
उत्तर
Mode | Description |
V | open a file for reading (default) |
‘W’ | Open a file for writing. Creates a new file if it does not exist or truncates the file if it exists. |
‘x’ | Open a file for exclusive creation. If the file already exists, the operation fails. |
‘a’ | Open for appending at the end of the file without truncating it. Creates a new file if it does not exist. |
‘t’ | Open in text mode, default |
‘b’ | Open in binary mode. |
‘+’ | Open a file for updating (reading and Writing). |
shaalaa.com
Introduction to Python and CSV Files
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
APPEARS IN
संबंधित प्रश्न
A CSV file is also known as a ______
The expansion of CRLF is ______
Which of the following module is provided by Python to do several operations on the CSV files?
The command used to skip a row in a CSV file is ______
What is CSV File?
Write a note on the open() function of python. What is the difference between the two methods?