会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
猴年马月
博客园
首页
新随笔
联系
订阅
管理
2022年2月22日
python的format用法
摘要: format用法我理解成了"占位符" Province='广东省' city='广州市' township='白云区' print("省区:{0},市区:{1},乡镇:{2}".format(Province, city, township)) #注意是.format 不是逗号 运行结果: >>>省
阅读全文
posted @ 2022-02-22 09:29 猴年马月
阅读(73)
评论(0)
推荐(0)
编辑
公告