Close file object file The sentence is :
B. file.close()
Open the file in read mode and allow updates ,mode The parameter value should be set to :
C. ‘r+’
Open file in append write mode ,mode The parameter value should be set to :
C. ‘a’
file “ In the Quiet Night .txt” The code of is “utf-8”, The output of the following program statement is :
with open(“ In the Quiet Night .txt”, ‘r’, encoding=“UTF-8”) as f:
print(f)
C. <_io.TextIOWrapper name=‘ In the Quiet Night .txt’ mode=‘r’ encoding=‘utf-8’>
pandas Read from csv The format file method is :
B. read_csv()
In the string s Of json The data is decoded as python The method of data type application is :
A. json.loads(s)
take python Format object obj Encoded as json The way to format is :
A. json.dumps(obj)
Return... As a list path The method of file name under the path is :
B. os.listdir()
The method to obtain the current working path is :
A. os.g