os.path.join
, желательно всегда.format
:a = 1
b = 'foo'
c = [1, 2, 3]
s1 = 'string with vars: %s %s %s' % (a, b, c)
s2 = 'string with vars: {} {} {}'.format(a, b, c)
s2 = 'string with vars: {2} {0} {1}'.format(a, b, c)
s2 = 'string with vars: {foo} {bar} {qux}'.format(foo=a, qux=b, bar=c)
#!/bin/sh
now="$(date +'%Y-%m-%d')"
url="http://example.com/$now/$now.mp4"
wget -c -P /папка/куда/сохранять/ $url