| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,13 +9,13 @@ | |||
| 9 | 9 | screen = pygame.display.set_mode(size) | |
| 10 | 10 | color = (255, 255, 255) | |
| 11 | 11 | screen.fill(color) | |
| 12 | - pygame.display.flip() | ||
| 12 | + pygame.display.update() | ||
| 13 | 13 | ||
| 14 | 14 | dino = pygame.image.load("images/d1.png") | |
| 15 | 15 | ||
| 16 | 16 | dino_rect = Rect(50, 100, 0, 0) | |
| 17 | 17 | ||
| 18 | - pygame.display.flip() | ||
| 18 | + pygame.display.update() | ||
| 19 | 19 | done = 0 | |
| 20 | 20 | dino_rect = Rect(50, 100, 0, 0) | |
| 21 | 21 | ||
@@ -32,6 +32,6 @@ | |||
| 32 | 32 | dino_rect = dino_rect.move([10, 0]) # 每次往前移动10 | |
| 33 | 33 | screen.fill(color) # 一定要重新填充背景色,否则移动时会留下上次的影子 | |
| 34 | 34 | screen.blit(dino, dino_rect) | |
| 35 | - pygame.display.flip() | ||
| 35 | + pygame.display.update() | ||
| 36 | 36 | ||
| 37 | 37 | pygame.quit() | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,7 +6,7 @@ | |||
| 6 | 6 | from wordcloud import WordCloud | |
| 7 | 7 | import jieba.analyse | |
| 8 | 8 | ||
| 9 | - | ||
| 9 | + print(__file__) | ||
| 10 | 10 | def word_segment(text): | |
| 11 | 11 | # 分词处理 | |
| 12 | 12 | jieba.analyse.set_stop_words("./stopwords.txt") | |
| Back | FazBrowse Home | New Git URL |
0 commit comments