py-basic/args.py

6 lines
165 B
Python
Raw Normal View History

2022-11-29 09:43:18 +01:00
import sys
if __name__ == "__main__":
print(f"Arguments count: {len(sys.argv)}")
for i, arg in enumerate(sys.argv):
print(f"Argument {i:>6}: {arg}")