Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
sh20raj
/
newfile
like
0
Runtime error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
newfile
/
app.py
sh20raj
Rename main.py to app.py
ab851c2
over 2 years ago
raw
Copy download link
history
blame
contribute
delete
Safe
190 Bytes
# Open the file in write mode ('w')
with
open
(
"xxx.txt"
,
"w"
)
as
file:
# Write the content "1234" to the file
file.write(
"1234"
)
print
(
"File 'xxx.txt' created with content '1234'"
)