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

  • 实验8

    from turtle import * def square(size=50, rgb='gold'): pencolor(rgb) for i in range(4): fd(size) left(90) def main(): setup(800, 600) speed(0) n = 10 f
    段承昊   2022-06-08 19:26   3   12
  • 实验8

    实验任务3 from turtle import * def square(size=50, rgb='gold'): pencolor(rgb) for i in range(4): fd(size) left(90) def main(): setup(800, 600) speed(0) n
    杖卫   2022-06-08 16:56   1   16
  • 实验七

    class User: count=0 def __init__(self,yonghuming='guest',mima='111111',status=1): User.count+=1 self.yonghuming = yonghuming self.mima = mima self.sta
    bamboosama   2022-06-08 15:57   2   7
  • 实验七

    1 class User: 2 def __init__(self, name, password='111111', status='1'): # 构造新账户 3 self.name = name 4 self.password = password 5 self.status = status
    velpro1129   2022-06-08 15:54   0   2
  • 实验八

    #实验4 from turtle import * def square(size=50, rgb='blue'): pencolor(rgb) for i in range(4): fd(size) left(90) def main(): setup(800, 600) speed(0) n =
    bamboosama   2022-06-08 15:54   1   6
  • 实验8

    task3 from turtle import * def square(size=50, rgb='pink'): '''绘制正方形 参数size指定边长 参数rgb指定画笔颜色 如果没有给参数,采用默认值 ''' pencolor(rgb) for i in range(4): fd(size
    廖一头雾水   2022-06-08 14:47   0   4
  • 实验8

    #实验4 from turtle import * def square(size=50, rgb='blue'): pencolor(rgb) for i in range(4): fd(size) left(90) def main(): setup(800, 600) speed(0) n =
    奈落——   2022-06-08 13:30   1   13
  • 实验7 类和模块

    class User: def __init__(self,name='guest',password=111111,status=1): self.name=name self.password=password self.status=status def info(self): print('
    孙艺欣   2022-06-08 13:16   3   10
  • 实验七

    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 7 def
    pray4hell   2022-06-08 13:13   2   3
  • 实验七

    class User(): name='guest' password='111111' def __init__(self,name,password): self.name=name self.password=password self.status=1 def info(self): if
    MeiKoY   2022-06-08 11:11   3   6