运维网's Archiver
论坛
›
Python
› python 3.0字符串比较问题
lyl801013
发表于 2017-4-29 12:02:37
python 3.0字符串比较问题
请问python字符不能这样比较吗?
t = "quit"
while True:
s = input('input a number:')
if s == t:
break
else:
print('Length of the string is',len(s))
else:
print('Done')
页:
[1]
查看完整版本:
python 3.0字符串比较问题