爲什麼在這個 python 代碼段中允許使用分號? - Why is semicolon allowed in this python snippet?

問題:

Python does not warrant the use of semicolons to end statements. Python 不保證使用分號來結束語句。 So why is this (below) allowed?那麼爲什麼這(下面)是允許的?

import pdb; pdb.set_trace()

解決方案:

參考一: https://en.stackoom.com/question/YYeq
參考二: https://stackoom.com/question/YYeq
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章