Skip to content

Commit

Permalink
087
Browse files Browse the repository at this point in the history
  • Loading branch information
EgoSay committed Aug 6, 2019
1 parent a645c90 commit fb9d834
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions 81~90/087.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/usr/bin/env python3.6
# -*- coding: utf-8 -*-
# @Author : adair_chan
# @Email : [email protected]
# @Date : 2019/8/6 上午9:41
# @IDE : PyCharm

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)

0 comments on commit fb9d834

Please sign in to comment.