下面的语句怎么解释啊?有点看不懂呀~求指导...if l.company_id = l.account_id.company_id or l.company_id = l.period_id.company_id:return False

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/26 09:18:15
下面的语句怎么解释啊?有点看不懂呀~求指导...ifl.company_id=l.account_id.company_idorl.company_id=l.period_id.company_id:

下面的语句怎么解释啊?有点看不懂呀~求指导...if l.company_id = l.account_id.company_id or l.company_id = l.period_id.company_id:return False
下面的语句怎么解释啊?有点看不懂呀~求指导...
if l.company_id = l.account_id.company_id or l.company_id = l.period_id.company_id:
return False

下面的语句怎么解释啊?有点看不懂呀~求指导...if l.company_id = l.account_id.company_id or l.company_id = l.period_id.company_id:return False
如果输入的ID不等于账户的ID,验证失败,无法进入.Or后面意思差不多