「Python入門」ファイルの読み込みサンプル
サンプルコード:
with open('changfa.txt') as fileObj:
contents = fileObj.read()
print(type(contents))
print(contents)
Coding Changes the World
サンプルコード:
with open('changfa.txt') as fileObj:
contents = fileObj.read()
print(type(contents))
print(contents)