0

Question about Python Module ⁉️

Hi, I noticed that if you want to run HTML or CSS in Python in Sololearn, you have to type: important os ....... os.system ("touch file.png") Now, my question is "touch file.png" What is it? And when I run it on my computer it gets error. I know that cmd commands have to be used in os.system ().

17th Feb 2022, 12:51 AM
Fꫀⲅძ᥆͟ᥙ᥉᯽
Fꫀⲅძ᥆͟ᥙ᥉᯽ - avatar
1 Odpowiedź
+ 2
'touch' is an UNIX command used to change timestamps of a file. It changes 'access' and 'modify' timestamps, if the file doesn't exist then it will create it by default. Iirc you cannot use 'touch' in windows.
17th Feb 2022, 1:52 AM
dumbhousekot
dumbhousekot - avatar