Generation

generate functionWed, 21 Dec 2022

テキストファイルを作る

def write_file(fname, text): with open(fname, 'w') as fout: fout.write(text) write_file('sample.txt', 'Sample Text')

Questions about programming?Chat with your personal AI assistant