全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
1652 1
2017-08-08
两列数据,第一列是姓,第二列是名的首字母。
Mike J.
John P.
Chirs S.


我想循环生成生成一个url,url有一定的规律,https://query=authlastname() and authfirst(),第一个括号填第一列的值,第二个填第二列。
也就是要得到三个url:https://query=authlastname(Mike) and authfirst(J.),https://query=authlastname(John) and authfirst(P.), https://query=authlastname(Chris) and authfirst(S.)

用python的语句就是:
for authlastname, authfirst in names:
    url = "https://query=authlastname(Sapienza) and authfirst(P.)% (authlastname, authfirst)
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2017-8-10 01:39:50
forvalues o=1/3 {
local l = authlastname[`o']
local f = authfirst[`o']
https://query=`l'(Sapienza) and `f'(P.)
}
试试?
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群