0

EOFError: EOF when reading a line

from pygame import mixer from datetime import datetime from time import time def musiconloop(file, stopper): mixer.init() mixer.music.load(file) mixer.music.play() while True: a = input() a = map(int, input().split()) if a == stopper: mixer.music.stop() break if __name__=='__main__' : musiconloop("water.mp3", "stop"

31st Jul 2020, 4:51 AM
Ashwani Kharwar
Ashwani Kharwar - avatar
1 Antwort