From 9077f6066775f3a3cf13bbb6a179219c8e48975b Mon Sep 17 00:00:00 2001 From: batrakeshav10 <71037843+batrakeshav10@users.noreply.github.com> Date: Thu, 1 Oct 2020 13:41:49 +0530 Subject: [PATCH 1/2] update1HELLOWORLD.py --- .../runoob/1helloworld.py" | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 键后退出。") From 10bfce053bccad841d979d0487ba004120912fc7 Mon Sep 17 00:00:00 2001 From: batrakeshav10 <71037843+batrakeshav10@users.noreply.github.com> Date: Thu, 1 Oct 2020 14:04:30 +0530 Subject: [PATCH 2/2] Update scrap.py --- .../1.2.2BeautifulSoup/scrapetest.py" | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)