what is trailing whitespace and how can I handle this?

前端 未结 4 497
抹茶落季
抹茶落季 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 21:05

    This is just a warning and it doesn't make problem for your project to run, you can just ignore it and continue coding. But if you're obsessed about clean coding, same as me, you have two options:

    1. Hover the mouse on warning in VS Code or any IDE and use quick fix to remove white spaces.
    2. Press f1 then type trim trailing whitespace.

提交回复
热议问题