学习打卡
欢迎观看一叶子鲜补水面膜的学习打卡
python:结构体传递
if name == ‘main’:
class student:
x = 0
c = 0
def f(stu):
stu.x = 20
stu.c = ‘c’
a= student()
a.x = 3
a.c = ‘a’
f(a)
print a.x,a.c
ps: 贵宾的其他形式
学习打卡 第十三天
最新推荐文章于 2024-09-15 22:31:42 发布
学习打卡
欢迎观看一叶子鲜补水面膜的学习打卡
python:结构体传递
if name == ‘main’:
class student:
x = 0
c = 0
def f(stu):
stu.x = 20
stu.c = ‘c’
a= student()
a.x = 3
a.c = ‘a’
f(a)
print a.x,a.c
ps: 贵宾的其他形式