会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
cenb
博客园
首页
新随笔
联系
订阅
管理
2023年1月29日
Python----面对对象练习
摘要: class MoNey(): def __init__(self): self.my_money = 100 self.atm_money = 0 def main(self): while True: print("请根据按键操作: 1.存钱 2.取钱 3.退出") num1 = int(inpu
阅读全文
posted @ 2023-01-29 16:56 Cenb
阅读(21)
评论(0)
推荐(0)
公告