python哪些运算符号可以进入字符串

更新时间:02-02 教程 由 幻想 分享

python哪些运算符号可以进入字符串?

print sum(map(ord,list(str1.lower())))-96*len(str1) 其中str1是输入字符串 以aBC为例 str1.lower() 将所有字母变成小写字母

声明:关于《python哪些运算符号可以进入字符串》以上内容仅供参考,若您的权利被侵害,请联系13825271@qq.com
本文网址:http://www.25820.com/tutorial/14_2190880.html