Pythonシェルでこれを入力すると機能します
>>> f= open(os.path.join(os.getcwd(), 'test1.txt'), 'r')
>>> f.read()
'plpw eeeeplpw eeeeplpw eeee'
>>> f.close()
しかし、Python プログラムを作成すると機能しません。
import os
f= open(os.path.join(os.getcwd(), 'test1.txt'), 'r')
f.read()
f.close()
テキストエディターを使用してこのコードを保存しました。このプログラムを Python シェルで実行すると、何も表示されません。どうしてか言ってくれない..