- 博客(2)
- 收藏
- 关注
原创 python格式化输出--format()函数
输出结果为:The current time is: 2024-10-13 22:58:00。字典位置为0,在{ }中的表示为0[字典的键],或者在字典前加**,来直接传入字典的键。输出结果为:The decimal number is: 100。输出结果为:Name Age Gender。输出结果为:The value of pi is 3.14。有数字时按数字对应位置,无数字时按左往右顺序对应位置。有参数时按参数对应位置,无参数时按左往右顺序对应位置。第四种:数据类型的格式化。
2024-10-13 23:09:26
813
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅
2