Python—print(f “{}”) 的用法

a=1
b=2
S=a+b
P=a*b
print(f"Sum of a and b is {S}, and product is {P}")

 >>>Sum of a and b is 3, and product is 2

你可能感兴趣的:(Python与sklearn,python)