示例#1
0
    print(
        "---------------------------------------------------------------------------------------"
    )
    First_Key = input("First Key:\n")
    Sec_Key = input("Please input your second Key \n")
    Three_Key = input("Please input your third Key \n")
    Four_Key = input("Please input your fourth Key \n")
    Five_Key = input("Please input your fifth Key \n")
    Six_Key = input("Please input your sixth Key \n")
    Seven_Key = input("Please input your seventh Key \n")
    Eight_Key = input("Please input your eigth Key \n")
    if (Tempo == "Fast"):
        playsound(Keys.FirstKey(First_Key)[0]["First_Key"])
        playsound(Keys.SecKey(Sec_Key)[0]["Sec_Key"])
        playsound(Keys.ThreeKey(Three_Key)[0]["Three_Key"])
        playsound(Keys.FourKey(Four_Key)[0]["Four_Key"])
        playsound(Keys.FiveKey(Five_Key)[0]["Five_Key"])
        playsound(Keys.SixKey(Six_Key)[0]["Six_Key"])
        playsound(Keys.SevenKey(Seven_Key)[0]["Seven_Key"])
        playsound(Keys.EightKey(Eight_Key)[0]["Eight_Key"])

    if (Tempo == "Slow"):
        playsound(Keys.FirstKey(First_Key)[0]["First_Key"])
        time.sleep(1)
        playsound(Keys.SecKey(Sec_Key)[0]["Sec_Key"])
        time.sleep(1)
        playsound(Keys.ThreeKey(Three_Key)[0]["Three_Key"])
        time.sleep(1)
        playsound(Keys.FourKey(Four_Key)[0]["Four_Key"])
        time.sleep(1)
        playsound(Keys.FiveKey(Five_Key)[0]["Five_Key"])