>>> import string >>> word = "hello." >>> word2 = word.replace(string.lowercase, '.') >>> print word2 hello.
我只想让所有的小写字母变成句号.
我在这做错了什么?
python string replace lowercase
lowercase ×1
python ×1
replace ×1
string ×1