在Python變數與資料型態文章中,說明到字串的表示法為文字前後加上單引號或雙引號, ... def drive(self): print(f"My car is {self.color} and {self.seat} seats.
確定! 回上一頁