我在画布上填写透明的“png”图像有以下问题。填充圆形/矩形就像一个魅力。当我用png替换圆形或矩形时,它不会按我的意愿填充。这是代码。 当我更换线路" context.arc ...."通过线" context.drawimage ....." png显示在画布上,但填充不起作用。
Traceback (most recent call last): File
"C:/Python27/study/study.py", line 4, in <module>
driver = webdriver.Firefox() File "C:\Python27\lib\site-packages\selenium\webdriver\firefox\webdriver.py",
line 59, in __init__
self.binary, timeout), File "C:\Python27\lib\site-packages\selenium\webdriver\firefox\extension_connection.py",
line 47, in __init__
self.binary.launch_browser(self.profile) File "C:\Python27\lib\site-packages\selenium\webdriver\firefox\firefox_binary.py",
line 66, in launch_browser
self._wait_until_connectable() File "C:\Python27\lib\site-packages\selenium\webdriver\firefox\firefox_binary.py",
line 105, in _wait_until_connectable
raise WebDriverException("Can't load the profile. Profile " WebDriverException: Message: Can't load the profile. Profile Dir: %s
If you specified a log_file in the FirefoxBinary constructor, check it
for details.