我对python中的new报废非常陌生,我在代码中没有错误,但out似乎是正确的,但问题在于它的输出语言。所以我试了一下IMDB这个流行的网站。我检查html代码,我想提取电影的名称,评级等。这是一个网站,有250个电影和评级我的代码刮数据如下,我使用模块,BeautifulSoup和请求。
# We use the request module to access the website IMDB
source = requests.get('https://www.imdb.com/chart/top/')
# Let capture error say if the
我是Python新手,来自C#。我知道如何公开类属性和方法。我想公开我的实例变量。让intellisense检测它们将是理想的。此外,请告诉我,如果这不是奏鸣曲,或者我应该做其他的事情。
class MyClass(Object):
class_attribute = "Foo"
#This is the way I'm currently publicizing instance attributes.
#Basically I'm using properties instead of instance attributes.