验证用于保护工作表的密码

Contents
[ ]

Protection.verify_password方法将返回true,如果指定的密码与用于保护给定工作表的密码匹配,并且如果指定的密码不匹配,则返回false。 下面的代码片段使用Protection.verify_password方法与Protection.is_protected_with_password属性结合使用,以检测密码保护,并验证密码。