Create object from class in separate file

后端 未结 3 1227
醉梦人生
醉梦人生 2020-12-25 10:57

I have done several tutorials on Python and I know how to define classes, but I don\'t know how to use them. For example I create the following file (car.py

3条回答
  •  南笙
    南笙 (楼主)
    2020-12-25 11:11

    Simply use the import command in your Mercedes file. There's a good intro about importing in Python in here

提交回复
热议问题