diff --git "a/Python\345\237\272\346\234\254\350\257\255\346\263\225\345\255\246\344\271\240/runoob/1helloworld.py" "b/Python\345\237\272\346\234\254\350\257\255\346\263\225\345\255\246\344\271\240/runoob/1helloworld.py" index a679e6c..2fc3f40 100644 --- "a/Python\345\237\272\346\234\254\350\257\255\346\263\225\345\255\246\344\271\240/runoob/1helloworld.py" +++ "b/Python\345\237\272\346\234\254\350\257\255\346\263\225\345\255\246\344\271\240/runoob/1helloworld.py" @@ -1,5 +1,5 @@ #!/usr/bin/python3 -print ("HGello World") +print ("Hello World") if True: @@ -46,4 +46,4 @@ #!/usr/bin/python3 -input("\n\n按下 enter 键后退出。") \ No newline at end of file +input("\n\n按下 enter 键后退出。") diff --git "a/python\347\275\221\347\273\234\346\225\260\346\215\256\351\207\207\351\233\206/1.2.2BeautifulSoup/scrapetest.py" "b/python\347\275\221\347\273\234\346\225\260\346\215\256\351\207\207\351\233\206/1.2.2BeautifulSoup/scrapetest.py" index ce6432a..432294c 100644 --- "a/python\347\275\221\347\273\234\346\225\260\346\215\256\351\207\207\351\233\206/1.2.2BeautifulSoup/scrapetest.py" +++ "b/python\347\275\221\347\273\234\346\225\260\346\215\256\351\207\207\351\233\206/1.2.2BeautifulSoup/scrapetest.py" @@ -2,7 +2,7 @@ from bs4 import BeautifulSoup html = urlopen("http://www.pythonscraping.com/pages/page1.html") bsObj = BeautifulSoup(html.read(), "html.parser")# -#bsObj = BeautifulSoup(html.read()) +bsObj = BeautifulSoup(html.read()) ''' 不加"html.parser"会存在警告:UserWarning: No parser was explicitly specified, so I'm using the bes t available HTML parser for this system ("html.parser"). This usually isn't a problem, but if you run this code on anoth @@ -23,4 +23,4 @@ #下面三者产生的结果一样的 print(bsObj.h1) print(bsObj.html.body.h1) -print(bsObj.html.h1) \ No newline at end of file +print(bsObj.html.h1)