1
kevinroot Oct 20, 2016 via iPhone 刚接触 elixir ,想解决个问题
|
3
182247236 OP 问题是不是有点弱智都没人想达 TT
|
4
jsonzz Oct 20, 2016 GetUrl = 'http://www.13235.com/liveforapp.php?cid = %s' % PID
|
5
WuMingyu Oct 20, 2016 via Android
搜索 python str format
|
6
ex44559 Oct 20, 2016 |
7
182247236 OP @jsonzz 还是不行,是因为实际上的 URL 应该是 GetUrl = 'http://www.13235.com/liveforapp.php?cid='PID'$appid=01' 这个 PID 是嵌在里面的。
|
10
Lonely Oct 20, 2016 via iPhone
搜索引擎不会用吗
|
11
182247236 OP GetPlayer = "http://123324/liveforapp.php?cid=%s" %PID +'&appid=S01'最后这么解决的,@ex44559 你真聪明
|
13
harry890829 Oct 20, 2016
占位符
|
14
glasslion Oct 20, 2016 Using % and .format() for great good!
https://pyformat.info/ "http://123324/liveforapp.php?cid={cid}&appid={appid}" .format(cid=PID,appid="S01") |
15
182247236 OP 谢谢
|