FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

updaet · huiiz/python_scripts@dd3d6b7 · GitHub

Repository navigation

Commit dd3d6b7

Browse files
committed
updaet
1 parent 8f5892b commit dd3d6b7

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎chrome_dinosaur/v_0_01.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
screen = pygame.display.set_mode(size)
1010
color = (255, 255, 255)
1111
screen.fill(color)
12-
pygame.display.flip()
12+
pygame.display.update()
1313

1414
dino = pygame.image.load("images/d1.png")
1515

1616
dino_rect = Rect(50, 100, 0, 0)
1717

18-
pygame.display.flip()
18+
pygame.display.update()
1919
done = 0
2020
dino_rect = Rect(50, 100, 0, 0)
2121

@@ -32,6 +32,6 @@
3232
dino_rect = dino_rect.move([10, 0]) # 每次往前移动10
3333
screen.fill(color) # 一定要重新填充背景色,否则移动时会留下上次的影子
3434
screen.blit(dino, dino_rect)
35-
pygame.display.flip()
35+
pygame.display.update()
3636

3737
pygame.quit()

‎utils.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from wordcloud import WordCloud
77
import jieba.analyse
88

9-
9+
print(__file__)
1010
def word_segment(text):
1111
# 分词处理
1212
jieba.analyse.set_stop_words("./stopwords.txt")

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL