📜  在 python 代码示例中创建记录

📅  最后修改于: 2022-03-11 14:47:13.798000             🧑  作者: Mango

代码示例1
class Employee:
    pass

john = Employee()  # Create an empty employee record

# Fill the fields of the record
john.name = 'John Doe'
john.dept = 'computer lab'
john.salary = 1000