-
Notifications
You must be signed in to change notification settings - Fork 1
os module
Ccode-lang edited this page Dec 23, 2021
·
5 revisions
import os
It runs the command given. Using commands with stdout output won't print at all. (Intended)
How to use:
shell(<string>)
It returns the command line arguments.
How to use:
argv()
Example:
import os
set args = argv()
print("first argument: " + args[0])
When the above is run with python3 ~/Ccode/Ccode.py file.cc wow hi
it outputs:
first argument: wow
Welcome to the Ccode language wiki!