7
|
Ryan Leach · 技术社区 · 14 年前 |
![]() |
1
21
在您的情况下,解析器永远不会看到
另外,使用括号将允许您直接使用语句,而无需跳转(尽管我无法重写您的代码以实际使用结构化编程技术;也许它太早了,或者它本身不适合块结构(因为代码现在是这样)。 |
![]() |
2
7
|
![]() |
3
6
The ELSE clause must occur on the same line as the command after the IF. For example: IF EXIST filename. ( del filename. ) ELSE ( echo filename. missing. ) The following would NOT work because the del command needs to be terminated by a newline: IF EXIST filename. del filename. ELSE echo filename. missing Nor would the following work, since the ELSE command must be on the same line as the end of the IF command: IF EXIST filename. del filename. ELSE echo filename. missing |
![]() |
4
2
如果我的理论是正确的,而你的其他理论却被忽视了,你最好还是这样做
第二,我隐约记得在测试目录是否存在时出现了某种bug。如果您可以测试该目录中是否存在一个文件,那么您的生活就会更轻松。如果没有可以确定的文件,可以尝试附加设备文件名(这在Win95、IIRC之前都是如此)
|
![]() |
5
1
|
![]() |
6
0
要检查目录,不应使用以下内容:
要正常工作,请使用:
注意结尾的“.”。 |
![]() |
A.E · python中具有多个if语句的列表理解 2 年前 |
![]() |
fc27 · 如果条件python循环不工作,请在中继续 2 年前 |
![]() |
sentimain · 如何将if语句合并到另一个if语句中? 2 年前 |
![]() |
bcsfh · 如果出现其他情况,则加倍 2 年前 |
|
Robbie McM · 如何使列表中的所有数据帧具有相同的列数? 2 年前 |