当前位置:网站首页>The window of the chosen data flow
The window of the chosen data flow
2022-08-03 08:34:00 【all-purpose cook】
This Internet can search a lot:
Simple example:
#!/usr/bin/env pythonimport os.pathf = open( os.path.join( os.path.abspath("."), "A.pkl"),"w")f.write("1")f.close()f = open( os.path.join( os.path.abspath("."), "A.pkl:legend"),"w")f.write("2")f.close()f = open( os.path.join( os.path.abspath("."), "A.pkl:legend1"),"w")f.write("3")f.close()f = open( os.path.join( os.path.abspath("."), "A.pkl"),"r")S = f.read()print(S)f.close()f = open( os.path.join( os.path.abspath("."), "A.pkl:legend"),"r")S = f.read()print(S)f.close()
Print out:
1
2
Note: If A.pkl is written last, the result will clear this alternative data stream
边栏推荐
猜你喜欢
随机推荐
Using pipreqs export requirements needed for the project. TXT (rather than the whole environment)
流行和声基础大笔记
uniapp swiper 卡片轮播 修改指示点样式效果demo(整理)
【无标题】
浅析什么是伪类和伪元素?伪类和伪元素的区别解析
Logic Pro X自带音色库列表
HCIP练习(OSPF)
mysql的innodb存储引擎和myisam存储引擎的区别
Charles packet capture tool learning record
word之个人设置
Redis集群概念与搭建
Logic Pro X built-in sound library list
安装mysql-workbench
【收获合辑】k-NN与检索任务的异同+jupyter转pdf
dflow入门5——Big step & Big parameter
数仓4.0(一)
DeFi明斯基时刻:压力测试与启示
vim 折叠函数
Gauva的ListenableFuture
Transformer、BERT、GPT 论文精读笔记