@echo off
chcp 65001
FOR /F "tokens=*" %%i in (words.txt) do (
echo %%i
convert -background lightblue -fill blue ^
-pointsize 72 label:"%%i" ^
"%%i.png"
)
pause
Hello word
Foo bar
Привет мир
"(49.053676508106875,33.423500061035156)".slice(1,-1) //best
"(49.053676508106875,33.423500061035156)".replace('(','').replace(')','')
"(49.053676508106875,33.423500061035156)".replace(/\(|\)/g,'')
from argparse import ArgumentParser
parser = ArgumentParser(usage="Here is usagage")
parser.add_argument("positional",nargs="*")
parser.add_argument("--flag")
if __name__ == "__main__":
args = parser.parse_args()
if args.positional and not args.flag:
print("i'm positional")
elif args.flag and not args.flag:
print ("i'm flag")
else:
raise Exception("RTFM")