📄 friend.py
字号:
"class that holds information about a friend, e.g. the name and the username of a friend, may expand to storing more props(properties) of a friend"
class Friend:
def __init__(self, name, user):
self.name = name
self.user = user
def getName(self):
return self.name
def getUser(self):
return self.user
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -