python怎么获取屏幕上的文字坐标?

我想要写一个自动点击屏幕的脚本,要点击某段文字,怎么获取这个文字的坐标啊?

https://blog.csdn.net/weixin_47139649/article/details/109259533