Commit b368252b by BellCodeEditor

save project

parent 32115408
Showing with 9 additions and 0 deletions
...@@ -19,6 +19,7 @@ path="C:\Users\\玛酷1\\Desktop\\test" ...@@ -19,6 +19,7 @@ path="C:\Users\\玛酷1\\Desktop\\test"
filelist=os.listdir(path) filelist=os.listdir(path)
for i in filelist: for i in filelist:
if i[-4:]==".wav" or i[-4:]==".ogg" if i[-4:]==".wav" or i[-4:]==".ogg"
num=-1 num=-1
volume = 0.2 volume = 0.2
pygame.mixer.music.set_volume(volume) # 初始播放音量 pygame.mixer.music.set_volume(volume) # 初始播放音量
......
class Hero:
def __init__(self):
self.level=1
self.hp=300
self.attack=20
yase=Hero()
print(yase.hp)
\ 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