我希望在父类的CodeBlock2方法中根据我将设置的标志有条件地执行execute,同时通过MyChild类调用该方法。class Parent extends GrandParent @override {
// CodeBlock1// CodeBlock2 // I wanna put this under if condition based on a flag
我浪费了大半个上午的时间来解决这个简单的问题。使用python,我想解析如下所示的数据文件:# There can be a variable number of comments between each data set.# The first data set starts on the next line:
-- codeblock A let a = 0 let b = f 0main编译器应该能够暗示let从=和预处理/去糖codeblock B到codeblock A。在本例中,使用let似乎是不必要的,就像您可以编写codeblock C但选择编写codeblock D一样。-- codeblock C pr