You are viewing a single comment's thread from:RE: [DA series - Learn Python with Steem #03] 邏輯判斷View the full contextView the direct parentyjcps (52)in #da-learnpythonwithsteem • 7 years ago 你是说这样的情况吗?pass不是跳过某段程序的意思 pass 是用来占位子的,为了让写的程序符合语法,就像上面那样 我知道的pass有两个作用: 一是像上面那样,什么都不做; 另一个是,还没想好程序的某个功能怎么写,写个pass占位子,以后有思路了再完善程序。
哦,理解了,我以为是整个if内的都pass,看来是我理解错了!多谢!