How to get the value of an attribute in xpath

as shown in the following figure, can I use xpath to get the SCR value of the attribute? (or do you want to get the node first and then come out in another way?)

//div[@id="indexCarousel"]//div[@class="item"]//img[@src]
Apr.28,2021

//div[@id="indexCarousel"]//div[@class="item"]//img/@src
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e474af-44c15.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e474af-44c15.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?