我有这个目录结构:
https://github.com/netjet-chrome-extension/netjet-mono/tree/master/examples/projects/golang
我尝试运行test.sh,其中包括:
big_array = [1, 7, 0, 0, 3]
i = 0
p = 0
while i <= len(big_array) - 1 and p <= len(big_array) - 2:
if big_array[i] == big_array[p + 1]:
big_array[i] = 5
big_array[p + 1] = 5
print(big_array)
i = i + 1
p = p + 1
但我收到此错误:
无法加载软件包:软件包sourcegraph_go_selenium:找不到 将“ sourcegraph_go_selenium”打包为以下任意一种: /usr/lib/go-1.10/src/sourcegraph_go_selenium(来自$ GOROOT) / home / oleg / codes / netjet / netjet-mono / examples / projects / golang / src / sourcegraph_go_selenium (来自$ GOPATH)
GOPATH的设置正确,那么为什么找不到#!/usr/bin/env bash
cd "$(dirname "$BASH_SOURCE")"
export GOPATH="$PWD"
go test sourcegraph_go_selenium
包?这个包裹就在sourcegraph_go_selenium
...?
答案 0 :(得分:1)
尝试一下:
new_df = pd.DataFrame(df['domain'].values.tolist(), columns=['domain_num','domain_alp'],index=df.index)
new_df=pd.concat([new_df ,df[['count','year']]],axis=1)