摘要:
# b = st.strip("|") # strip() 只去头尾的,不能去中间 阅读全文
摘要:
with open(r'商品资料','r',encoding='utf-8') as f1: lis_goods = eval(f1.read()) # 用eval似乎会执行结果一次性返回,结果显示的是一行print(lis_goods) 阅读全文
摘要:
s = "55p"" print(s.isdigit()) # False s2 = "5568" print(s2.isdigit()) # True 阅读全文