Menu
首页
搜索
SpringBoot
Vue
Vant
Python
Android
Harmony
InnoDB
Old
关注
发信
关注(28)
粉丝(399)
动态
文章
图片
python3 变量格式化转换成字符串
num=3
str='I am %f years old' % (num)
print(str)
输出
I am 3.000000 years old
05-12 08:36