瀏覽代碼

Rename noms.txt -> pendu.txt

master
Dimitri Merejkowsky 5 年之前
父節點
當前提交
c714de4191
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. +3
    -3
      sources/04-pendu.py
  2. +0
    -0
      sources/pendu.txt

+ 3
- 3
sources/04-pendu.py 查看文件

@@ -2,9 +2,9 @@ import random


def read_words():
stream = open("noms.txt")
contents = stream.read()
stream.close()
file = open("pendu.txt")
contents = file.read()
file.close()
words = contents.splitlines()
return words



sources/noms.txt → sources/pendu.txt 查看文件