尝试通过Python发布博客作者
class ConvertUrltoBitmap extends AsyncTask<String, Void, Bitmap> {
@Override
protected void onPreExecute() {
super.onPreExecute();
}
public Bitmap doInBackground(String... urls) {
Bitmap map = null;
try {
URL url = new URL(urls[0]);
HttpURLConnection connection =(HttpURLConnection)url.openConnection();
connection.setDoInput(true);
connection.connect();
InputStream input = connection.getInputStream();
map= BitmapFactory.decodeStream(input);
} catch (Exception e) {
e.printStackTrace();
}
return map;
}
protected void onPostExecute(Bitmap bitmap){
try {
mWidgetItems.add(bitmap);
}catch (Exception exception){
exception.printStackTrace();
}
}}
C:\ Users \ KIRA \ PycharmProjects \ blog \ venv \ Scripts \ python.exe 是错误:C:/Users/KIRA/.PyCharmCE2018.3/config/scratches/scope.py 追溯(最近一次通话):文件 “ C:/Users/KIRA/.PyCharmCE2018.3/config/scratches/scope.py”,第1行,在 从google_auth_oauthlib.flow导入InstalledAppFlow ModuleNotFoundError:没有名为“ google_auth_oauthlib”的模块