如何基于使用python的背景图像区分html元素?

时间:2020-07-03 02:05:23

标签: python

在我的场景中,我需要根据ID为“ t44_0_1”的背景图片来区分下一站。如果我有第一个标签,则需要打印“确定”,否则需要打印“不正确”。 有谁能帮助解决这个问题?

<div id="t44_0_1" class="ah" style="left:18px;top:0px;width:16px;height:16px;background-image: url('SMG?q=1&amp;i=0191f5aaded042c33180d357113667fbefc81b95&amp;w=16&amp;h=16');"></div>

<div id="t44_0_1" class="ah" style="left:34px;top:0px;width:16px;height:16px;background-image: url('SMG?q=1&amp;i=be90bfe1cf3196f2afc7abf4393e6f30be367d75&amp;w=16&amp;h=16');"></div>

0 个答案:

没有答案
相关问题