import requests
response = requests.get("https://gitlab.com/api/v4/users/ahmed_sh/projects")
print(response.status_code) # 200
print(response.text) # []
print(response.json()) # []
我正在try 使用python API获取我的GitLab repo项目列表,但输出什么都没有!不过,当我使用浏览器时,我得到了一个非空的响应.我怎样才能解决这个问题?