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 Answer
+ 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