unprotect方法

unprotect()

取消保护工作表。

def unprotect(self):
    ...

评论

此方法取消保护没有密码保护的工作表。

unprotect(password)

取消保护工作表。

def unprotect(self, password):
    ...
范围 类型 描述
password str 密码

评论

如果工作表没有密码保护,您可以将空值或空白字符串设置为密码参数。

也可以看看