这个问题在这里已经有了答案: 9年前关闭。 Possible Duplicate: python str.strip strange behavior. 我有以下一段代码: st = '55000.0' st = st.strip('.0') print st
確定! 回上一頁