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