如何在Python中加入两个弦

2022-08-06

以下示例是关于Python中包含如何在Python中加入两个弦用法的示例代码,想了解如何在Python中加入两个弦的具体用法?如何在Python中加入两个弦怎么用?如何在Python中加入两个弦使用的例子?那么可以参考以下相关源代码片段来学习它的具体使用方法。

[英]:how to concatenate two strings in python源码类型:Python
# use {}, where u want to place integer, or any other datatype.
# Use .formate at the end of string, 
# and finally place data variable in parentheses  
a = 123.1133
b = "Username"
c = True
print("a = {}".format(a))
print("b = {}".format(b))
print("c = {}".format(c))

本文地址:https://www.itbaoku.cn/snippets/795562.html