Python开发——字符串format
2014-04-15 16:30
393 查看
import string print '{0} {1} {2}'.format('a', 'b', 'c') print '{name} {age}'.format(age = 22, name = 'admin') print '{array[2]}'.format(array = range(10))
相关文章推荐
- python之字符串格式化(format)(转自:benric)
- Python小白学习之路(九)—【字符串格式化】【百分号方式】【format方式】
- python开发_python中str.format()
- 神一般的 str.format() 函数 - Python 字符串格式化转换(转载)
- python中format()方法格式化字符串
- python 给urllib.quote的字符串格式化出现ValueError: unsupported format character
- python 字符串格式化 ( 百分号 & format )
- python 字符串格式化(format)
- Python——format字符串格式化
- Python - 格式化(format())输出字符串 详解 及 代码
- python格式化字符串Type Error: Format Requires Mapping 的问题
- python开发_difflib字符串比较
- python之字符串格式化(format)
- python格式化字符串format的用法
- Python 字符串格式化输出(format/printf)
- day14 Python format字符串格式化
- python开发_python中str.format()
- CrazyWing:Python自动化运维开发实战 八、Python数据类型之字符串
- Python基础-字符串格式化_百分号方式_format方式
- Python 字符串格式化 format