上述 json: str 是代表變數 json 的型別註釋(type annotation)是字串 str ,代表應該傳進去字串型別的變數。 而 -> str 則代表該函式回傳的型別應是字串,.
確定! 回上一頁