当我尝试使用三重引号时,python-mkdebian
会发生大声崩溃,之后会出现 apport quickly package [--extras]
,而当我仅在单引号中创建多行字符串时,后者会静默停止。
答案1
您可以使用运算符来连接字符串。以下是我在应用程序文件+
中执行此操作的摘录:setup.py
long_description="Qreator enables you to easily create your " +
"own QR codes to encode different types of information " +
"in an efficient, compact and cool way.",
答案2
你也可以使用 Python 的隐式行延续像这样:
long_description=(
"Qreator enables you to easily create your "
"own QR codes to encode different types of information "
"in an efficient, compact and cool way."
),