python出力txt関数の2つのモード

458 ワード


file = open("write_test.txt", encoding="utf-8",mode="w")  
file.write("    ")  
file.close()  
      
with open("write_test.txt", encoding="utf-8",mode="a") as data:  
    data.write("     ") 

w ( ),a ( )。