uchida1512 / draft

0 stars 0 forks source link

Python Boot Camp テキスト_5章_ファイルの書き込み、読み込み #1

Open uchida1512 opened 4 years ago

uchida1512 commented 4 years ago
C:\Users\a\PycharmProjects\pythonProject\uchida1512_python_boot_camp\venv\Scripts\python.exe "C:\Program Files\JetBrains\PyCharm Community Edition 2020.2\plugins\python-ce\helpers\pydev\pydevconsole.py" --mode=client --port=53672
import sys; print('Python %s on %s' % (sys.version, sys.platform))
sys.path.extend(['C:\\Users\\a\\PycharmProjects\\pythonProject\\uchida1512_python_boot_camp', 'C:/Users/a/PycharmProjects/pythonProject/uchida1512_python_boot_camp'])
PyDev console: starting.
Python 3.8.5 (tags/v3.8.5:580fbb0, Jul 20 2020, 15:57:54) [MSC v.1924 64 bit (AMD64)] on win32
>>> runfile('C:/Users/a/PycharmProjects/pythonProject/uchida1512_python_boot_camp/b_c_chapter05.py', wdir='C:/Users/a/PycharmProjects/pythonProject/uchida1512_python_boot_camp')
f.read()
''
>>> txt
'Hello Python\nこんにちは Python'
>>> print(f.read())

>>> print(txt)
Hello Python
こんにちは Python