2021年12月26日

摘要: 一、读文件 filename = 'pi_digits.txt' with open(filename) as file_object: contents = file_object.read() >读取 print(contents)  lines = file_object.readlines 阅读全文
posted @ 2021-12-26 22:03 Rz_dddd 阅读(27) 评论(0) 推荐(0) 编辑
 
摘要: class Car(): def __init__(self, make, model, year): self.make = make self.model = model self.year = year self.odometer_reading = 0 def get_descriptive 阅读全文
posted @ 2021-12-26 21:03 Rz_dddd 阅读(56) 评论(0) 推荐(0) 编辑