![](/img/trans.png)
[英]Why is using the != operator gives me a simple error in my python program?
[英]Why is my simple python program giving me errors
您不能使用“,”添加字符串和數字,您必須使用“+”或新的格式化字符串(自 Python 3.6 起):
print(f"Here is your text. You can add variables with {variableName} or calculation like {a + b}")
希望有幫助。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.