Python Fundamentals: Argparse 1 of 2

preview_player
Показать описание
Quick Reference:

Рекомендации по теме
Комментарии
Автор

As a newbie can understand. other newbies can give a try. Thanks kishtats, Well explained :D

yingbowang
Автор

Quick question: say I want to capture a title of some sort that will contain a few strings - something like that:
'-t', '--title' type=str .... and when I execute the script, I want to capture a title, example: script.py -t Today's article is about
So how can I capture that sequence of strings as a one combined string ? So if I do: print(args.title) I should be getting back my entered title: Today's article is about
Maybe I am using the wrong type qualifier ?

charlesbovalis