摘要: python基础知识(二) 字符串格式化 ​ 格式: % 类型 > ' %类型 ' %(数据) %s 字符串 ​ print(' %s is boy'%('tom')) > tom is boy %d 整型 ​ print(' tom has %d money'%(20)) > tom has 20 阅读全文
posted @ 2019-06-04 17:04 染指未来 阅读(122) 评论(0) 推荐(0) 编辑