推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
0clickjacking0
V2EX  ›  Python

关于 Python3 中读取文件使用了 w+后,还能恢复吗

  •  
  •   0clickjacking0 · Feb 1, 2021 · 3031 views
    This topic created in 1939 days ago, the information mentioned may be changed or developed.

    关于 Python3 中读取文件使用了 w+后,还能恢复吗,程序在阿里云上。

    7 replies    2021-02-04 10:37:24 +08:00
    0clickjacking0
        1
    0clickjacking0  
    OP
       Feb 1, 2021
    只是突然想到这个问题,一个想法而已,还没有真实发生😂
    ksc010
        2
    ksc010  
       Feb 1, 2021
    若没有“覆盖”的话,理论上是可以的
    goodryb
        3
    goodryb  
       Feb 1, 2021
    w+ 应该是不存在则创建文件,存在则先清空在写入, 十有八九是救不回来了。
    0clickjacking0
        5
    0clickjacking0  
    OP
       Feb 4, 2021
    @linw1995 谢谢老哥
    0clickjacking0
        6
    0clickjacking0  
    OP
       Feb 4, 2021
    @ksc010 谢谢老哥
    0clickjacking0
        7
    0clickjacking0  
    OP
       Feb 4, 2021
    @goodryb 谢谢老哥
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3190 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 13:33 · PVG 21:33 · LAX 06:33 · JFK 09:33
    ♥ Do have faith in what you're doing.