我嘗試加入一個文本(地址)和一個串列,最終我的串列中包含第一個地址,例如:paris street 1 paris street 2 等,所以我嘗試使用這個腳本來做到這一點,但它不起作用。
你能幫助我嗎?
targetPattern=r"C:\Users\**\AppData\Roaming\Esri\ArcGISPro\Favorites"
target = glob.glob(targetPattern)
print (target)
joiend = [target,Rezo]
for ready in joiend:
# JOIN TARGET
ready = (''.join([''.join(target),r'\[email protected]\rezo_h.geom04.REGIE_EAU_POTABLE']))
print (ready)
arcpy.env.workspace = ready
#list adress
fcs = arcpy.ListFeatureClasses("rezo_h.geom04.AEP*")
print (fcs)
jointure = List.insert(ready, fcs)
for ready2 in jointure:
# JOIN TARGET
ready2 = fcs.join(ready)
print ("jointure")
print (ready2)
uj5u.com熱心網友回復:
為了解決我的問題,我使用
x = [1, 2, 3]
y = ["t" str(i) for i in x]
y
['t1', 't2', 't3']
它作業
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/510815.html
標籤:Python列表加入弧度
