死碼 (編程)
From Wikipedia, the free encyclopedia
Remove ads
永遠唔會行得到(例如係行嘅條件永遠唔會有可能達到;睇下面),
a = 0 if a>1000: # 如果 a 數值永遠冇可能超過 1000,噉呢行跟住就會有拃死碼。 [省略]
應用
睇埋:代碼難讀化
睇埋
攷
Wikiwand - on
Seamless Wikipedia browsing. On steroids.
Remove ads
From Wikipedia, the free encyclopedia
永遠唔會行得到(例如係行嘅條件永遠唔會有可能達到;睇下面),
a = 0 if a>1000: # 如果 a 數值永遠冇可能超過 1000,噉呢行跟住就會有拃死碼。 [省略]
Seamless Wikipedia browsing. On steroids.