08.Python-String演算
#String+Stringは数字に似ています
print("Hello, World") == print("Hello" + "World")
==
name = input()
print("Hello, " + name)
#複雑なString接続
literal string interpolation
name = input()
print(f"Hello, {name}")
構文の使用の定義1.print(f"):Pythonはf以降の文字列値を文字列補間として認識する.
stringの変数を実際の値に変換します.
#Whitespaceの識別(インデント)
PythonはTAB(空間4)サイズに基づくすべてのパーティションに使用される
Reference
この問題について(08.Python-String演算), 我々は、より多くの情報をここで見つけました https://velog.io/@ss3152psy/TIL-08.-Python-String-연산テキストは自由に共有またはコピーできます。ただし、このドキュメントのURLは参考URLとして残しておいてください。
Collection and Share based on the CC Protocol