def photo_url(self):
        """获取话题头像图片地址.

        :return: 话题头像url
        :rtype: str
        """
        img = self.soup.find('a', id='zh-avartar-edit-form').img['src']
        return img.replace('_m', '_r')
def photo_url ( self ) : img = self . soup . find ( 'a' , id = 'zh-avartar-edit-form' ) . img [ 'src' ] return img . replace ( '_m' , '_r' )
获取话题头像图片地址.

        :return: 话题头像url
        :rtype: str