2024-04-25 23:33:16 发布
网友
考虑:
print "%s is %d years old." % ('Meirav', 5)
字符串文字和所调用的元组之间的%运算符是什么?除了在print语句中,它在Python中还能看到什么?你知道吗
%
It's known as the "string formatting" or "interpolation" operator,它可以用在任何你想把格式化数据插入字符串的地方。你知道吗
It's known as the "string formatting" or "interpolation" operator,它可以用在任何你想把格式化数据插入字符串的地方。你知道吗
相关问题 更多 >
编程相关推荐