python

Python format 格式化函数

Python format 格式化函数format 函数可以接受不限个参数,位置可以不按顺序。实例>>>"{} {}".format("hello", "world") # 不设置指定位置,按默认顺序'hello world' >>> "{0} {1}".format("hello", "world")...

windows下安装Python

Python的官网 www.python.org 中找到最新版本的Python安装包 (以下按照64位系统)选择:Windows x86-64 executable installer 下载 运行这时候需要注意的是:一定要勾选:Add Python 3.7 to PATH把python加入到系统环境变量中...