会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
一步至遥
有的人光彩夺目,有的人平庸浅薄
博客园
首页
新随笔
联系
管理
订阅
2018年9月7日
Python中print用法
摘要: %s 字符串 string="hello" #%s打印时结果是hello print "string=%s" % string # output: string=hello #%2s意思是字符串长度为2,当原字符串的长度超过2时,按原长度打印,所以%2s的打印结果还是hello print "str
阅读全文
posted @ 2018-09-07 10:51 一步至遥
阅读(18023)
评论(0)
推荐(0)
编辑
公告
TOP