Python
This commit is contained in:
17
script_python.py
Normal file
17
script_python.py
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import os
|
||||
|
||||
def main():
|
||||
cwd = os.getcwd()
|
||||
files = os.listdir(cwd)
|
||||
|
||||
print(f"Folder curent: {cwd}\n")
|
||||
print("Fișiere găsite:")
|
||||
for name in files:
|
||||
print(f" - {name}")
|
||||
|
||||
print(f"\nTotal fișiere/foldere: {len(files)}")
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user