This commit is contained in:
louiscklaw
2025-01-31 21:15:04 +08:00
parent 3337cc3d1e
commit acf9d862ff
324 changed files with 43162 additions and 0 deletions

18
max015/T07/test.py Normal file
View File

@@ -0,0 +1,18 @@
#edit this cell to write the program
hotel = []
with open("./votes.txt",'r') as fi:
lines = fi.readlines()
for l in lines:
l2 = l.strip()
hotel.extend(l2.split(', '))
print("Disney: " + str(hotel.count("Disney")))
print("Hotel ICON: " + str(hotel.count("Hotel ICON")))
print("Ocean Park: " + str(hotel.count("Ocean Park")))
print("helloworld")