Python映射拆分操作符用法实例
2015-05-19 00:00
417 查看
本文实例讲述了Python映射拆分操作符用法。分享给大家供大家参考。具体如下:
运行结果如下:
name is jack and age is 24
希望本文所述对大家的Python程序设计有所帮助。
name="jack" age=24 s="name is {name} and age is {age}".format(**locals()) print s
运行结果如下:
name is jack and age is 24
希望本文所述对大家的Python程序设计有所帮助。
相关文章推荐
- Python映射拆分操作符用法实例
- Python原始字符串与Unicode字符串操作符用法实例分析
- python中__slots__用法实例
- Python中函数的参数定义和可变参数用法实例分析
- 关于Python 的@操作符 Decorator 的用法
- python下MySQLdb用法实例分析
- Python3.2中Print函数用法实例详解
- Python文件迭代的用法实例教程
- 常见的python正则用法实例讲解
- Python3.2中Print函数用法实例详解
- python开发中range()函数用法实例分析
- python中sleep函数用法实例分析
- Python可变参数*args和**kwargs用法实例小结
- Python原始字符串(raw strings)用法实例
- 转载:Python正则表达式的用法(2. 替换;3.拆分)
- python动态参数用法实例分析
- Python unittest模块用法实例分析
- python中MySQLdb模块用法实例
- python函数局部变量用法实例分析
- Python中logging模块的用法实例