Python3安装和使用 1.安装 Python管方下载地址 选择Customize installation安装,并且勾选Add Python 3.X to PATH. 勾选Documentation.pip.tcl/tk and IDLE.Python test suite.py launcher.for all users. 勾选Associate files with Python.Add Python to environment variable和Create shortcuts 注…
文件读写 一.文件打开 传统方法 >>> f = open('data.txt', 'w') # Make a new file in output mode ('w' is write) >>> f.write('Hello\n') # Write strings of characters to it 6 >>> f.write('world\n') # Return number of items written in Python 3.X 6…