Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是python的新手。我想编写包含多行编码的 if else 语句。但是一旦我写了 if else 语句编码的第一行,我就不能按回车写下一行。我搜索它并发现大多数其他示例,如果它们按回车按钮,然后应用程序将自动为编写下一行 if else 代码提供空间。那么怎么写呢?
这是我从互联网上获得的其他代码的示例。 在此处输入图像描述
如您所见,应用程序将继续读取编码语句的下一行,而我的代码如下所示:
在此处输入图像描述
请帮帮我T^T
您需要:在 if 语句后添加一个冒号:
:
if a==3: