我对Python比较陌生,希望有人可以向我解释以下内容:
class MyClass:
Property1 = 1
Property2 = 2
print MyClass.Property1 # 1
mc = MyClass()
print mc.Property1 # 1
Run Code Online (Sandbox Code Playgroud)
为什么我可以静态地通过MyClass实例访问Property1?
我想在 VSCode 的终端中测试一小段 JavaScript 代码,然后再将它们插入到我的项目中。我想要类似于 Chrome 的 Devtools 控制台的东西。