Pythonのバックスラッシュの改行

#Pythonでは、バックスラッシュ\はコードを自動的にラップして継続的に使用できることを意味します
。#改行後、行に記述された関数は同じです。

a =100
b = a +1 +\
    2 + 3
c=a+b+\
    4 + 5 +6 + \
    7+8+9+ \
    10
print("{}".format(b))
print(c)

おすすめ

転載: blog.csdn.net/weixin_47021806/article/details/114941502
おすすめ