📌  相关文章
📜  目前正在播放的 spotipy - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:44.086000             🧑  作者: Mango

代码示例1
# Get track information
track = spotifyObject.current_user_playing_track()
print(json.dumps(track, sort_keys=True, indent=4))
print()
artist = track['item']['artists'][0]['name']
track = track['item']['name']

if artist !="":
    print("Currently playing " + artist + " - " + track)