top of page
Search

PYTHON CODING

  • Writer: waclaw_koscielniak
    waclaw_koscielniak
  • Sep 23
  • 1 min read

import os

from pathlib import Path

p = Path("sample.txt")

p.write_text("Hello")

print(os.path.isfile("sample.txt"), p.stat().st_size)

p.unlink()


[Running] python3 -u "/Users/name/test/test183.py"

True 5

[Done] exited with code=0 in 0.072 seconds



Try to run it.
Try to run it.
















 
 
 

1 Comment


Guest
Sep 24

Try to verify.

Like
bottom of page