摘要: 字符串的内置方法: 移除空白strip mas=' hello ' print(msg) print(msg.strip()) rstrip移除右边空白 lstrip移除左边空白 用法: while True: name=input('user: ').strip pwd=input('passwo 阅读全文
posted @ 2017-07-19 20:29 兰博~~ 阅读(132) 评论(0) 推荐(0) 编辑