member variable string gets treated as Tuple in Python

前端 未结 3 1409
星月不相逢
星月不相逢 2020-12-08 17:58

I am currently learning Python with the help of CodeAcademy. My problem may be related to their web application, but my suspicion is I am just wrong on a very fundamental le

3条回答
  •  星月不相逢
    2020-12-08 18:38

    You've got a comma after those attributes in your constructor function.

    Remove them and you'll get it without a tuple

提交回复
热议问题