Python字符串处理

一.传统的%操作符 1.直接格式化字符 1 print "your score is %06.1f" % 9.5 2.以元组的形式格式化 1 2 3 country = 'China' province = 'ShangXi' print "I come from %s%s" %(country, province) 3.以字典的形式格式化 1 2 info = {'country':'China', 'province':'ShangXi'}

Hello World

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. Quick Start Create a new post 1 $ hexo new "My New Post" More info: Writing Run server 1 $ hexo server More info: Server Generate static files 1 $ hexo generate More info: Generating