python格式化函数foramt
摘要:
#通过位置print '{0},{1}'.format('chuhao',20) print '{},{}'.format('chuhao',20) print '{1},{0},{1}'.format('chuhao',20) #通过关键字参数print '{name},{age}'.format 阅读全文
posted @ 2018-05-06 13:51 工大只有一个阿锤 阅读(458) 评论(0) 推荐(0) 编辑