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.
我正在尝试编写和读取受密码保护的 excel 文件,我发现我可以使用“com.jexcel.util.ExcelAdapter”库设置和重置密码。但我找不到检查文件是否受保护的方法。
任何人都可以指导我吗?
谢谢!
我想这就是你想要的:Workbook.isProtected()
我很好奇是否可以a<b<c在不使用标准的情况下将其用作条件a<b and b<c。所以我试了一下,我的测试结果通过了。
a<b<c
a<b and b<c
a = 1 b = 2 c = 3 assert(a<b<c) # In bounds test assert(not(b<a<c)) # Ou