本文主要是介绍大学课堂点名程序,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
大学课堂点名程序
目录
main.py
import tkinter as tk
import pygame
import csv
import random
from datetime import datetime
from tkinter import messagebox
from tkinter import simpledialog
input_data="student1"
def langDu(text):print(text)pygame.mixer.init()pygame.mixer.music.load("./Initialize/Roster/"+text+".mp3")pygame.mixer.music.play()while pygame.mixer.music.get_busy():pygame.time.Clock().tick(10)
def langDu2(text):print(text)pygame.mixer.init()pygame.mixer.music.load("./Initialize/RosterSystem/"+text+".wav")pygame.mixer.music.play()while pygame.mixer.music.get_busy():pygame.time.Clock().tick(10)def update_student_name():global current_student_indexglobal shuffled_student_indicesif current_student_index < len(student_names):student_index = shuffled_student_indices[current_student_index]student_name_var.set(student_names[student_index])try:langDu(student_names[student_index])except
这篇关于大学课堂点名程序的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!