摘要: 参考:https://www.jianshu.com/p/c555113a30ea 简单的,则使用下面方法 filenames.startswith('file') #True filenames.endswith('.txt') s.find("ok") #存在则返回下标,否则返回-1(复杂的建议 阅读全文
posted @ 2020-12-14 18:20 qiezi_online 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 第一种,(推荐) order = ['date', 'time', 'open', 'high', 'low', 'close', 'volumefrom', 'volumeto'] df = df[order] 第二种, df_id = df.id df = df.drop('id',axis=1 阅读全文
posted @ 2020-12-14 17:41 qiezi_online 阅读(737) 评论(0) 推荐(1) 编辑