Commit e69db777 by BellCodeEditor

save project

parent 61ab5658
Showing with 11 additions and 2 deletions
......@@ -5,4 +5,6 @@ with open(r'C:\Users\lenovo\Desktop\book.txt','r',encoding='utf-8') as file:
if '小兰:12本' in data:
data = data.replace('小兰:12本','小兰:1444本')
new += data
with.wr
\ No newline at end of file
with open(r'C:\Users\lenovo\Desktop\book.txt','w',encoding='utf-8') as file:
file.write(new)
class Car:
def __init__(self):
self.color = "black"
self.speed = "3.7s"
BMW_Z4 = Car()
print("颜色:"+BMW_Z4.color)
print("百里加速度:"+BMW_Z4.speed)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment