From 6b0c4c7d005e5758af7d63cd93a28688a479dbf6 Mon Sep 17 00:00:00 2001 From: Nasy Date: Tue, 14 May 2019 21:32:07 +0800 Subject: [PATCH] Change name: string.py to strings.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 标准库里有一个名为 string 的,在很多包里(比如 pip -> logging )用了它。 鉴于,这个是针对新手的,可能在这个文件夹下用 pip 安装包,导致发生 `ImportError` ``` from string import Template ImportError: cannot import name 'Template' from 'string' (/User/xxx/Python-100-Days/Day01-15/Day02/code/string.py) ``` 因此改名为 strings.py 以规避此错误。 --- Day01-15/Day02/code/{string.py => strings.py} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Day01-15/Day02/code/{string.py => strings.py} (100%) diff --git a/Day01-15/Day02/code/string.py b/Day01-15/Day02/code/strings.py similarity index 100% rename from Day01-15/Day02/code/string.py rename to Day01-15/Day02/code/strings.py