![pycharm student pycharm student](https://protorials.files.wordpress.com/2017/02/pycharm5.png)
With open(filname,'r',encoding='utf-8') as sfile:ģ.7 Function to display all student information Get and display all student information stored in the student information file. With open(filname,'r',encoding='utf-8') as tfile:ģ.6 Function to display all student information Print('No information was found for the student.')Īnswer=input('Continue to modify student information? y/n')ģ.5 Function for Statistics of Total Students Print('Error in input, please re-enter!')Įlse: #Modify successfully exits, if not, runs all the time
![pycharm student pycharm student](https://img-blog.csdnimg.cn/20201130171820302.png)
S = input('Please enter football results') S = input('Please enter your drawing results') S = input('Please enter your English results') Print('Find the student's information, please modify it.') With open(filname, 'w', encoding='utf-8') as ofile: St_num=int(input('Please enter the student number to be modified:')) With open(filname,'r',encoding='utf-8') as mfile: Int(item.get('English Achievement'))+int(item.get('Line Generation Achievements'))+int(item.get('Painting Achievements'))+int(item.get('Football results')))) Item.get('Line Generation Achievements'), Print(format_title.format(item.get('School Number'), #Save the input student information to a dictionary Socar_score = int(input('Please enter football results:')) Paintting_score = int(input('Please enter your drawing results:')) St_name=input('Please enter the student name:')Įnglish_score=int(input('Please enter your English results:'))Īlgeb_score=int(input('Please enter your online transcript:')) St_num=int(input('Please enter the student number (e.g.
#Pycharm student code
Print('-')Įnter student information from the console and save it to a disk file.įilname='stu_inf.txt'#Write to the top of the code
![pycharm student pycharm student](https://austincode.com/itse1359/images/download-pycharm-apply.png)
Print('6.Statistics total number of students') Code demonstration: def main():#Create Primary FunctionĪnswer=input('Do you want to exit the student management system? Y|F')