我写了一个Python脚本来显示所有现场比赛的比分。我希望在桌面上而不是终端上显示分数。我还希望每 5 分钟左右更新一次记分卡。 这是 python 脚本:
import xml.etree.cElementTree as ET
import requests
tree = ET.fromstring(requests.get('http://www.cricbuzz.com/livecricketscore/home-score-matches.xml').text)
for elem in tree.iter('match'):
state = elem.find('state').text
footer = elem.find('footer').text
header = elem.find('header').text
print state,header,footer
如何实现上述目标?
最佳答案
关于python - 在Linux桌面上显示实时记分卡,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32280500/