class Employee:
def __int__(self, first, last, salary):
self.first = first
self.last = last
self.salary = salary
self.email = first + '.' + last + '@company.com'
emp_1 = Employee('Yash', 'Runwal', 50000)
#print(emp_1)
#print(emp_2)
print(emp_1.email)
Python给出了一个错误,说Employee不接受任何参数,但是我不知道该怎么做。我目前正在使用Pycharm进行编码。