-
实验七
class User: def __init__(self,name='guest',password=111111,status=1): self.name=name self.password=password self.status=status def info(self): print(' -
实验7
class User: """用户""" count = 0 def __init__(self, name='guest', password=111111, status=1): User.count += 1 self.name = name self.password = password -
实验七
def main(): pass if __name__ == '__main__': main() def main(): pass if __name__ == '__main__': main() class User: """用户""" count = 0 def __init__(self -
实验七
user.py 1 class User(): 2 def __init__(self,name="guest",password='111111',status=1): 3 self._name=name 4 self._password=password 5 self._status=statu -
实验八
task3 from turtle import * def square(size=50, rgb='yellow'): pencolor(rgb) for i in range(4): fd(size) left(90) def main(): setup(800, 600) speed(0) -
实验七
class User: def __init__(self, name='guest', password='111111', status='1'): self.name=name self.password=password self.status=status def modify_passw -
实验7
class User(): def __init__(self,name="guest",password='111111',status=1): self._name=name self._password=password self._status=status def define(self) -
实验7
1 class User: 2 count = 0 3 4 5 def __init__(m, name = 'guest', password = '111111', zt = '1'): 6 7 User.count += 1 8 m.name = name 9 m.password = pas -
实验8 python库应用编程与体验
3.实验任务3 from turtle import * def square(size=50, rgb='orange'): '''绘制正方形 参数size指定边长 参数rgb指定画笔颜色 如果没有给参数,采用默认值 ''' pencolor(rgb) for i in range(4): fd( -
实验七
class user: def __init__(self,name='guest',password=111111,status=1): self.name=name self.password=password self.status=status def info(self): if self