# This is a sample Python script.
# Press Shift+F10 to execute it or replace it with your code.
# Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings.
'''
def print_hi(name):
# Use a breakpoint in the code line below to debug your script.
print(f'Hi, {name}') # Press Ctrl+F8 to toggle the breakpoint.
# Press the green button in the gutter to run the script.
if __name__ == '__main__':
print_hi('PyCharm')
# See PyCharm help at https://www.jetbrains.com/help/pycharm/
'''
import math
import random
k=int(input('학생 수: '))
name = input('이름 입력: ')
class Student():
# name, kor, eng, math,
# each class midterm, finalterm, mission
# example: input Data > name, [90, 90, 100], [100, 200, 300], [100, 100, 100]
score = []
def Insert(self, kor, eng, math):
self.kor= int(random.random()*100)
self.eng= int(random.random()*100)
self.math= int(random.random()*100)
def res(self, num):
for i in range(num):
self.score
# class School(int, k):
# members = []
# def __init__(self):
# for i in range(100):
# self.members.append(Student())
# def __init__(self, k):
# for i in range(k):
# self.members.append(Student())
def main()
x=Student()
y=school(int, k)
print()
top of page
기능을 테스트하려면 라이브 사이트로 이동하세요.
220118
220118
댓글 0개
좋아요
댓글(0)
bottom of page