简体   繁体   English

如何使用python修改txt文件属性

[英]how to modify txt file properties with python

I am trying to make a python program that creates and writes in a txt file. 我正在尝试制作一个在txt文件中创建和写入的python程序。 the program works, but I want it to cross the "hidden" thing in the txt file's properties, so that the txt can't be seen without using the python program I made. 该程序可以运行,但是我希望它越过txt文件属性中的“隐藏”内容,以便不使用我制作的python程序就无法看到txt。 I have no clues how to do that, please understand I am a beginner in python. 我不知道该怎么做,请了解我是python的初学者。

I'm not 100% sure but I don't think you can do this in Python. 我不确定100%,但我认为您无法在Python中做到这一点。 I'd suggest finding a simple Visual Basic script and running it from your Python file. 我建议找到一个简单的Visual Basic脚本,然后从您的Python文件运行它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM