filename = f'{datetime.now():%Y-%m-%d-%H%M}'
with open(f'{filename}.txt', 'w') as file:
file.write('hello')
For further actions, you may consider blocking this person and/or reporting abuse
filename = f'{datetime.now():%Y-%m-%d-%H%M}'
with open(f'{filename}.txt', 'w') as file:
file.write('hello')
For further actions, you may consider blocking this person and/or reporting abuse
Richard Atodo -
Ajisafe Victor Oluwapelumi -
Ichinga Samuel -
Muhammad Atif Iqbal -
Top comments (0)