简体   繁体   中英

How can you write/delete/read a file in a different user account with the same ip address with python?

Recently, I learnt how to write/delete/read a file in Python (I am a beginner). However, something has got me thinking: is it possible to write/delete/read a file in a different user account from the same network (ie same ip address)? If so, how? Don't worry, I'll just try it at home. ;)

If you can remove the file without Python, then you can remove it with Python. Otherwise, the answer is "no".

This is running into more of an OS question. The answer is if you have permission to do so then yes you can but if you do not have permissions over the file then you cannot.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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