读者你好:
    通常2种方式。
第一种:使用 \ 换行。例如
with open('/path/to/some/file/you/want/to/read') as file_1, \
     open('/path/to/some/file/being/written', 'w') as file_2:
    file_2.write(file_1.read())第二种:使用()。例如:
if (this_is_one_thing and
    that_is_another_thing):
    do_something()