Python程序:用代码唱歌!
import time
def sing(song): for line in song: print(line) time.sleep(1)
song = [ 'I'm a little teapot', 'Short and stout', 'Here is my handle', 'Here is my spout', 'When I get all steamed up', 'Hear me shout', 'Tip me over and pour me out!' ]
sing(song)
原文地址: https://www.cveoy.top/t/topic/lPIA 著作权归作者所有。请勿转载和采集!