Skip to content

soya-yaya/CPP-and-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 

Repository files navigation

CPP-and-Python

CPP创建类

Python创建类

cpp 和 Python 设计一个(简单)类时语法的相同点

1️⃣class
2️⃣需要先定义初始化类的属性(CPP中需要分public,private,Python分为固定和私有)
3️⃣需要另外定义成员函数

Python类用CPP类改写

😇1️⃣内部函数调用https://blog.csdn.net/qq_39321234/article/details/127638676?spm=1001.2101.3001.6650.2&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EAD_ESQUERY%7Eyljh-2-127638676-blog-109403641.pc_relevant_landingrelevant&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EAD_ESQUERY%7Eyljh-2-127638676-blog-109403641.pc_relevant_landingrelevant&utm_relevant_index=5
😇2️⃣string无法定义 #include(deve)
😇3️⃣include无法打开源文件 环境配置错误,用dev的编程包

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published