摘要: free是完全没有占用的空闲内存,Available 减 free是操作系统为了优化运行速度拿来调用的内存, 程序需要的话操作系统会进行释放。所以一般看Available即可。 free+buffer+cache 阅读全文
posted @ 2021-01-03 21:14 tigergaonotes 阅读(133) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/python #coding=utf-8 #好好学习,天天向上 age=12 if age<4: price=0 elif age<18: price=40 elif age>66: price=40 else: price=20 print(f"your admmssion 阅读全文
posted @ 2021-01-03 21:09 tigergaonotes 阅读(93) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/python #coding=utf-8 #好好学习,天天向上 cars=['audi','bmw','toyota','subaru'] for car in cars: if car == 'bmw': print(car.upper()) else: print(car. 阅读全文
posted @ 2021-01-03 21:02 tigergaonotes 阅读(41) 评论(0) 推荐(0) 编辑