argv[0] 來取得script 的檔名. 兩者的差別在哪呢? 以下是一例,假設我們寫了一個main function 如下:. A.py. #!/usr/bin/python3 # encoding: utf-8
確定! 回上一頁