当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
AI mid-stage sequence labeling task: three data set construction process records
scala 并行集合、并行并发、线程安全问题、ThreadLocal
审批流设计
sqlite 日期字段加一天
行业洞察 | 如何更好的实现与虚拟人的互动体验?
HCIP练习(OSPF)
Laya中关于摄像机跟随人物移动或者点击人物碰撞器触发事件的Demo
手把手教你如何自制目标检测框架(从理论到实现)
dflow入门1——HelloWorld!
Docker启动mysql
timestamp
Qt 下拉复选框(MultiSelectComboBox)(一) 实现下拉框多选,搜索下拉框内容
110道 MySQL面试题及答案 (持续更新)
Redisson实现分布式锁
Charles packet capture tool learning record
HCIP练习02(OSPF)
ArcEngine(三)通过MapControl控件实现放大缩小全图漫游
品牌方发行NFT时,应如何考量实用性?
flutter 应用 抓包
qt使用mysql数据库(自学笔记)