I'm aiming to determine whether a specific cell is empty or not and if it does to kill/end the python script
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. And as said in the comments, your code is correctly wrong. none
is undefined in Python. You probably meant None
if sheet.cell_value(n,1) == None:
exit()
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.