会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
conanwang-qq:26738256
博客园
首页
新随笔
联系
订阅
管理
2016年11月24日
python开发_python中str.format()
摘要: 格式化一个字符串的输出结果,我们在很多地方都可以看到,如:c/c++中都有见过 下面看看python中的字符串格式函数str.format(): 1 #使用str.format()函数 2 3 #使用'{}'占位符 4 print('I\'m {},{}'.format('Hongten','Wel
阅读全文
posted @ 2016-11-24 09:31 conanwang
阅读(614)
评论(0)
推荐(0)
公告