We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f26e9e commit 9b47a4aCopy full SHA for 9b47a4a
standard_lib/math_module/main.py
@@ -0,0 +1,5 @@
1
+# math module example
2
+
3
+import math
4
+print(f'pi = {math.pi}')
5
+print(f'cos(pi / 4) = {math.cos(math.pi / 4)}')
standard_lib/os_module/main.py
@@ -0,0 +1,3 @@
+import os
+print(os.getcwd()) # current working directory
+os.system('echo hello') # execute given command in a subshell.
standard_lib/sys_module/main.py
@@ -0,0 +1,4 @@
+# Enter '$ python main.py foo bar'to execute this example script.
+# ['main.py', 'foo', 'bar'] should be outputed.
+import sys
+print(sys.argv)
0 commit comments