计算机程序设计(Python)-21级 (南京信息工程大学)

  • 实验7 类和模块

    一、实验任务 user.py: 1 class User: 2 def __init__(self,name='guest',password='1'*6,status=1): 3 self.name=name 4 self.password=password 5 self.status=statu
    Dimple$   2022-06-02 23:20   1   10
  • 实验7

    class User: def __init__(self, name, password='111111', status='1'): self.name = name self.password = password self.status = status def info(self): if
    刘封云   2022-06-02 10:59   1   8
  • 实验7

    1 class User: 2 count=0 3 def __init__(self,name='爷傲奈我何',password=5201314,state=1): 4 self.name = name 5 self.password = password 6 self.state= state
    气工吴旭   2022-06-02 10:43   2   8
  • 实验7 类和模板

    定义类: 1 class User: 2 def __init__(self,name='guest',password='111111',status='1'): 3 self._name=name 4 self._password=password 5 self._status=status 6
    暮渎   2022-06-01 23:34   0   21
  • 实验七

    User: 1 class User: 2 count = 0 3 4 def __init__(m, name = 'guest', password = '111111', zt = '1'): 5 User.count += 1 6 m.name = name 7 m.password = p
    注册好容易啊   2022-06-01 23:02   2   16
  • 实验七

    user 1 class User: 2 def __init__(self,name='guest',password='111111',statu='1'): 3 4 self.name=name 5 self.password=password 6 self.statu=statu 7 def
    爱冒险的小洋   2022-06-01 22:24   0   13
  • 实验7

    from users import Users,Admin u1 = Users('戎',123456,1) u1.info() Admin.ban(1,u1) u1.info() Admin.unblock_user(1,u1) u1.info() class Users: count = 0 d
    奈落——   2022-06-01 21:55   0   13
  • 实验7 类和模块

    5.实验任务5 (1)定义一个类,简单模拟用户名、密码: class User: def __init__(self, name='guest', password='111111', status='1'): self.name=name self.password=password self.s
    失聪的小毛   2022-06-01 20:57   1   15
  • 实验7

    class User: def __init__(self, name, password='111111', status='1'): # 构造新账户 self.name = name self.password = password self.status = status def info(s
    苏萌0017   2022-06-01 20:49   1   25
  • 实验7 类和模块

    1 ''' 2 用户账户 3 数据:用户名,密码 4 操作:显示账户信息,修改密码 5 ''' 6 7 class User: 8 def __init__(self, name='guest', password='111111', status=1): 9 self.name = name 10
    Kyle-K   2022-06-01 20:48   1   9