提交 d992fd15 编写于 作者: F feilong

初始化

上级 9164b277
.vscode
.idea
.DS_Store
__pycache__
*.pyc
*.zip
.python-version
\ No newline at end of file
# skill_tree_oo # skill_tree_oo
面向对象程序设计技能树 面向对象程序设计技能树
\ No newline at end of file
{
"node_id": "oo-4068a4025df34a929c33dd95cffd28b4",
"keywords": [],
"children": [],
"export": [
"hello.json"
],
"keywords_must": [],
"keywords_forbid": []
}
\ No newline at end of file
{
"type": "code_options",
"author": null,
"source": "hello.md",
"notebook_enable": false,
"exercise_id": "d4e2302f452541b99f140996252d91a8"
}
\ No newline at end of file
# Hello OO
以下哪个是面向对象程序代码
## 答案
```cpp
// C++
class Object{
Object(){}
~Object(){}
void test(){
std::cout<<"hello"<<std::endle;
}
}
int main(){
Object* o = new Object();
delete o;
return 0;
}
```
## 选项
### A
```javascript
var foo = function(){
return {
}
}
```
### B
```python
def object():
return {}
o = object()
```
### C
```c
int test(){
}
int main(){
test();
return 0;
}
```
{
"node_id": "oo-4641f4c858b543558421e5108b3ebd6b",
"keywords": [],
"keywords_must": [],
"keywords_forbid": []
}
\ No newline at end of file
{
"node_id": "oo-0d9227eed545462c87b6a885cbd9ba38",
"keywords": [],
"keywords_must": [],
"keywords_forbid": []
}
\ No newline at end of file
{
"node_id": "oo-3c4767b318e64f6299afca4a5acbc7ea",
"keywords": [],
"keywords_must": [],
"keywords_forbid": []
}
\ No newline at end of file
{
"node_id": "oo-7389d6261a09486aa02c8a4c752ffc7d",
"keywords": [],
"keywords_must": [],
"keywords_forbid": []
}
\ No newline at end of file
{
"tree_name": "oo",
"keywords": [],
"node_id": "oo-64db1acc555f41cb97db2e9c77b23107",
"keywords_must": [],
"keywords_forbid": []
}
\ No newline at end of file
{
"oo": {
"node_id": "oo-64db1acc555f41cb97db2e9c77b23107",
"keywords": [],
"children": [
{
"面向对象程序设计初阶": {
"node_id": "oo-0d9227eed545462c87b6a885cbd9ba38",
"keywords": [],
"children": [
{
"OO初步": {
"node_id": "oo-4641f4c858b543558421e5108b3ebd6b",
"keywords": [],
"children": [
{
"HelloOO": {
"node_id": "oo-4068a4025df34a929c33dd95cffd28b4",
"keywords": [],
"children": [],
"keywords_must": [],
"keywords_forbid": []
}
}
],
"keywords_must": [],
"keywords_forbid": []
}
}
],
"keywords_must": [],
"keywords_forbid": []
}
},
{
"面向对象程序设计中阶": {
"node_id": "oo-3c4767b318e64f6299afca4a5acbc7ea",
"keywords": [],
"children": [],
"keywords_must": [],
"keywords_forbid": []
}
},
{
"面向对象程序设计高阶": {
"node_id": "oo-7389d6261a09486aa02c8a4c752ffc7d",
"keywords": [],
"children": [],
"keywords_must": [],
"keywords_forbid": []
}
}
],
"keywords_must": [],
"keywords_forbid": []
}
}
\ No newline at end of file
from codecs import ignore_errors
from skill_tree.tree import TreeWalker
if __name__ == '__main__':
walker = TreeWalker("data", "oo", "面向对象程序设计", ignore_keywords=True)
walker.walk()
pre_commit~=2.16.0
skill-tree-parser~=0.0.8
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册