"""
struct Sqlist
{
int * data;
int size
}
struct Sqlist lt;
lt.size = 20
class sqlist()
def __init__:
__size = 0;
"""
# 多态:
str1 = "hello"
def show(x):
for i in x:
print(i)
show(str1)
list1 = ['h','e', 'l','l','o']
show(list1)
python中的封装
最新推荐文章于 2024-06-14 23:48:57 发布