Question about Python Module ā‰ļø | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 Resposta
+ 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