INNER CODE UNIT · Python

__str__

junyanz/CatPapers · compile_cat_papers.py:78

    def __str__(self):
        tmp = "[Title]: %s\n" % self.title
        tmp += "[Year]: %d\n" % self.year
        tmp += "[Paper]: %s\n" % self.paper
        tmp += "[Project]: %s\n" % self.project
        tmp += "[URL]: %s\n" % self.imgurl
        tmp += "In %s\n" % self.article
        tmp += "[Teaser]: %s\n" % self.teaser
        for i, (author, url) in enumerate(zip(self.authors, self.author_urls)):
            tmp += "[Author %d]: %s at %s\n" % (i, author, url)

        return tmp

    def add_authors(self, content):
        for author, url in zip(self.authors[:-1], self.author_urls[:-1]):
            if url:
                content += '<a href="%s">%s</a>, \n' % (url, author)
            else:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…