[英]How do I find if an Excel cell is empty using Sikuli Python [on hold]
I'm aiming to determine whether a specific cell is empty or not and if it does to kill/end the python script我的目标是确定一个特定的单元格是否为空,以及它是否会杀死/结束 python 脚本
Currently my script looks like this but it's telling me that "none" is not defined目前我的脚本看起来像这样,但它告诉我没有定义“无”
if sheet.cell_value(n,1) == none:
exit()
You should provide a MCVE a Minimal, Complete and Verifiable Example , in your question.您应该在您的问题中提供 MCVE一个 Minimal, Complete and Verifiable Example 。 And as said in the comments, your code is correctly wrong.正如评论中所说,您的代码是正确的错误。 none
is undefined in Python.在 Python 中none
未定义。 You probably meant None
你可能的意思是None
if sheet.cell_value(n,1) == None:
exit()
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.