本文主要是介绍python弹奏《起风了》,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
代码是很大的!
其实就是python用ctypes调用Win API
import ctypes
import threading
import time
winmm = ctypes.windll.winmmclass Scale:Rest = 0C8 = 108B7 = 107A7s = 106A7 = 105G7s = 104G7 = 103F7s = 102F7 = 101E7 = 100D7s = 99D7 = 98C7s = 97C7 = 96B6 = 95A6s = 94A6 = 93G6s = 92G6 = 91F6s = 90F6 = 89E6 = 88D6s = 87D6 = 86C6s = 85C6 = 84B5 = 83A5s = 82A5 = 81G5s = 80G5 = 79F5s = 78F5 = 77E5 = 76D5s = 75D5 = 74C5s = 73C5 = 72B4 = 71A4s = 70A4 = 69G4s = 68G4 = 67F4s = 66F4 = 65E4 = 64D4s = 63D4 =
这篇关于python弹奏《起风了》的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!