what is trailing whitespace and how can I handle this?

前端 未结 4 489
抹茶落季
抹茶落季 2021-02-06 20:37

some piece of my codes:

            if self.tagname and self.tagname2 in list1:
                try: 
                    question = soup.find(\"div\", \"post-te         


        
4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-06 20:46

    I have got similar pep8 warning W291 trailing whitespace

    long_text = '''Lorem Ipsum is simply dummy text  <-remove whitespace
    of the printing and typesetting industry.'''
    

    Try to explore trailing whitespaces and remove them. ex: two whitespaces at the end of Lorem Ipsum is simply dummy text

提交回复
热议问题