回答編集履歴
1
ファイル名を変数に変更
answer
CHANGED
@@ -19,7 +19,7 @@
|
|
19
19
|
percent=input("体脂肪率を入力してください:")
|
20
20
|
print(str(percent)+"%")
|
21
21
|
|
22
|
-
with open(
|
22
|
+
with open(FILENAME, "a") as f:
|
23
23
|
writer = csv.writer(f, lineterminator="\n")
|
24
24
|
writer.writerow([datetime.datetime.now(), weight, percent])
|
25
25
|
```
|