From 795ec177a14d1f39edce14eefc69d47a0b095747 Mon Sep 17 00:00:00 2001 From: mss12138 <17839221453@163.com> Date: Mon, 21 Dec 2020 13:49:37 +0800 Subject: [PATCH] Update 8-9.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 使打印的名字大写 --- chapter08/8-9.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chapter08/8-9.py b/chapter08/8-9.py index dc1954e..827287b 100644 --- a/chapter08/8-9.py +++ b/chapter08/8-9.py @@ -1,6 +1,6 @@ def show_magicians(names): for name in names: - print(name) + print(name.title()) magicians = ['znn','david','amy'] -show_magicians(magicians) \ No newline at end of file +show_magicians(magicians)