Python3関連のことを調べてみた2022年01月26日

Python3関連のことを調べてみた2022年01月26日
目次

地震波形データをPythonで読み込んでみよう

# 本稿の方針
本稿では、地震波形データをPythonで読み込む方法についてご紹介します。

Pythonを使って地震波形データを処理したい方に参考になればと思います。特に、地震の勉強・研究・業務をしてきた方で、Pythonを今まで使ってこなかった方や、反対に、Pythonは使いこなせる方で地震波形データに新たに手を出すような方々を想定しています。ちょっとしたフィルタリングや描画ができるようになったり、データ解析(機械学習を含む)のための基礎となったりしてお役に立てればと思います。

ここでは、自分で試した範囲のことを書いておくつもりです。網羅的な説明はしません。また、Pythonの説明などはしません。

(2022年1月25日追記)限定公開で同僚に内容を確認してもらいましたが、それほど問題なさそうなので、全体公開に切り替えました。

## 環境
Python 3系を使うことにします。今回はPython 3.7.2とObsPy 1.2.1を使っています。

# ObsPyとは
[![alt](https://docs.obspy.org/_static/obspy-logo.

元記事を表示

python async 実行記録

“`python
import asyncio
import time

async def say_after(delay, what):
print(f”{time.strftime(‘%X’)} :{what}”)
await asyncio.sleep(delay)
print(f”{time.strftime(‘%X’)} :{what}”)

async def main():
tasks = [say_after(3, ‘hello’), say_after(2, ‘yeeeei’), say_after(1, ‘ueeeeei’)]
await asyncio.gather(*tasks)

asyncio.run(main())
“`
“`
16:38:20 :hello
16:38:20 :yeeeei
16:38:20 :ueeeeei
16:38:21 :ueeeeei
16:38:22 :yeeeei
16:38:23 :hello
“`

元記事を表示

Jupyter RuntimeErrorの対処方法 asyncio.run() cannot be called from a running event loop

Jupyter自身のイベントループ上で新たにイベントループを開始しようとしたために起こったエラー。非同期処理を実行させたければ、await関数で直接実行させれば良い。

“`python:Jupyterで非同期処理を実行させる
import asyncio
import datetime

async def display_date():
“””現在時刻を5秒間表示する”””
loop = asyncio.get_running_loop()
end_time = loop.time() + 5.0
while True:
print(datetime.datetime.now())
if(loop.time()+1.0)>=end_time:
break
await asyncio.sleep(1)

x : asyncio.run(display_date())
○ : await display_date()
“`
“`
2022-01-25 15:31:57.79

元記事を表示

Python3: 接種状況ダッシュボードのデータを使ってワクチン接種済者をカウントする

デジタル庁の [接種状況ダッシュボード](https://info.vrs.digital.go.jp/dashboard/) のデータを処理して、ワクチン接種済者をカウントします。

データの取得

“`bash
wget https://data.vrs.digital.go.jp/vaccination/opendata/latest/summary_by_date.csv
“`

次を計算します。
>ワクチン2回目接種済者
>ワクチン2回目接種後、6ヶ月が経過した者
>ワクチン3回目接種済者

“`py:count_vaccination.py
#! /usr/bin/python
# -*- coding: utf-8 -*-
#
# csv_read.py
#
# Jan/25/2022
#
import sys
import csv
import datetime
#
from datetime import timedelta

# ————————————————————-

元記事を表示

青空文庫を使ってネガポジ判定をやってみた

# ネガポジ判定とは
文書のネガポジ判定(極性判定)とは、それぞれの文書が肯定的(ポジティブ)か否定的(ネガティブ)かを判定するタスクである。
ここでは抽出した単語のネガポジ判定をするために東北大学乾・鈴木研究室が提供している「日本語評価極性辞書」を活用する。
https://www.cl.ecei.tohoku.ac.jp/Open_Resources-Japanese_Sentiment_Polarity_Dictionary.html

# 実装
必要なライブラリをインポート

“`python
import zipfile
import urllib.request
import MeCab
import pandas as pd
import re
“`

ネガポジ判定に使用するテキストを準備

“`python
# 青空文庫『吾輩は猫である』のファイルをダウンロード
urllib.request.urlretrieve(‘https://www.aozora.gr.jp/cards/000148/files/789_ruby_5639.zip’, ‘789_ruby_

元記事を表示

【Twitcasting】気になるあの配信者の配信開始通知をdiscordに送信方法を考えて実装してみた。

#はじめに
趣味で推しの子がよくツイキャスするけど通知に気づけないからdiscordに投げるBotを作りました。
言語はPythonで書いてます。
記事の内容はほぼGitHubにあるものと同じです。メモ程度です。

実際の稼働してる様子はこんな感じ。
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/2422677/431677b7-d048-f1d6-6c22-8c287106e785.png)

#入れ方
とりあえず、[GitHub](https://github.com/renit0424/TwitcasNoticeDiscord)にあげてあります。
ダウンロード出来たら`confg.py`を編集して指定された値を入力します。
最後に`main.py`を実行すれば…
たぶん動きます。

元記事を表示

Python Seleniumでスクレイピングする時、エラーが爆発

selenium 4.1.0でスクレイピングした時、エラーが多数発生する。
from selenium import webdriver
options = webdriver.ChromeOptions()
driver = webdriver.Chrome(executable_path=’C:/webdriver/chromedriver.exe’)
driver.get(‘https://www.yahoo.co.jp/’)

元記事を表示

[python] seleniumのdeepL自動化

# 説明
pythonのseleniumをつかってdeepLという翻訳サイトを操作してファイルの中身を自動的に翻訳できたらよいと思って作ったもの。
バグが多くうまく動かないことが多いです
# 実行環境
* Intel(R) Core(TM) i7-8700 6コア12スレッド
* メモリ16GB
* windows10 64bit
* 仮想8コア、物理4コア
* Python 3.8.11
* ANACONDA
* JupyterLab 3.1.7

#コード
## モジュール
“`python:modules
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from bs4 import BeautifulSoup
import time
import urllib.parse
import os
from joblib import Parallel, delayed
from selenium.webdriver.common.by import By
f

元記事を表示

TF-IDFの基本的な考え方と実装方法

# TF-IDF
### 概要
TF-IDF(Term Frequency-Inveerse Document Frequency)は、全ての文書に出現する単語と、一部の文書にしか出現しない単語を区別するための方法である。
Bag of Words(BoW)は各文書の単語ごとの出現回数をカウントしたものであるが、この方法では全ての文書に出現する単語と、一部の文書にしか出現する単語を区別することができない。

### 数式による説明
以降の説明で使用する記号の意味は下記のとおり。

+ $n_{d,t}$ :文書$d$で単語$t$が出現する回数
+ $df_{t}$ :単語$t$が出現する文書数
+ $N$ :全体の文書数
+ $T$ :1つの文書における単語数の合計

#### TF
TFは、「1つの文書の中に現れる全単語の合計出現回数のうち、その1つの単語がどれだけの割合で出現したか」と定量化した指標である。したがって、ある1つの文書の1つの単語に対して定まる指標である。

“`math
TF_{d,t} = \frac{n_{d,t}}{\sum_{t=1}^{T}n_{d,t}

元記事を表示

Bag of Words(BoW)の3つのやり方

# Bag of Wordsとは
Bag of Words(BoW)は、各文書の形態素解析の結果をもとに、単語ごとの出現回数をカウントしたものである。
今回は、下記の3つの文書を対象にBoWを実行する。 

– 子供が走る 
– 車が走る
– 子供の脇を車が走る

*厳密には形態素は単語より小さな概念であるが、今回は単語として扱っている

# MeCabのインストール
形態素解析を行うための便利なライブラリにMeCabがある。
私はWidowsを使っているのだが、下記のサイトにお世話になった。
[MecabをインストールしてPythonで使う【Windows】](https://self-development.info/mecab%E3%82%92%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB%E3%81%97%E3%81%A6python%E3%81%A7%E4%BD%BF%E3%81%86%E3%80%90windows%E3%80%91/)

# 1. 地道に行う方法
– 必要なライブラリをインポート 

“`py

元記事を表示

pyenv-win環境でpipでインストールしたコマンドラインツールが使えない!時

pyenv-winでpath通してpip使えてるのに、pipでインストールしたパッケージ(jupyter等)が使えないときは、`shims`フォルダ除いてみてほしい。

“`:このパスは通ってる(これじゃ足りない)
%USERPROFILE%\.pyenv\pyenv-win\bin
%USERPROFILE%\.pyenv\pyenv-win\shims
“`

ちなみにpipはここに入ってるからコマンドつかえる。pipでインストールされたパッケージは、ここじゃなくて、

“`:ここにインストールされる(このパスを追加すればいい)
%USERPROFILE%\.pyenv\pyenv-win\versions\3.x.x\Scripts
# versionは適当なバージョンを指定する
“`

元記事を表示

Python3: 診療・検査医療機関の PDF を JSON に変換

次で公表されている PDF を JSON に変換します。
[診療・検査医療機関の公表について](https://www.pref.tochigi.lg.jp/e04/sinnryoukensa2.html)

小山地区のデータを取得します。

“`bash
wget https://www.pref.tochigi.lg.jp/e04/documents/20220112225313.pdf
“`

PDF の表示

“`bash
evince 20220112225313.pdf
“`

![medical_jan24.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/179446/4d70c5b8-6634-ca92-27d8-870c37520454.png)

変換

“`bash
pdftotext -layout 20220112225313.pdf
#
./medical_to_json.py 20220112225313.txt oyama_medical.json > tmp01

元記事を表示

【6】「いかのおすし」を縦表記しよう

ファイルの名前は,「20211220_[自分の名前].py」でお願いします.

以下ターミナル実行時の出力例です.

“`






“`
https://gyazo.com/d275362db67f52ccd975376177047ee4
↑にも授業資料の演習提示時のgifがあります.

元記事を表示

スクレイピングの基本的な流れ

# Webページをダウンロード
こちらサイト( https://codezine.jp/ )にアクセスしてみる。
Requestモジュールを使用する。Webブラウザの代わりにWebサイトにアクセスし、HTTPでデータの送受信を行ってくれる。

“`python
import requests
r = requests.get(‘https://codezine.jp’)
“`

下記のとおりstatus_codeを確認すると、アクセスに成功(200)していることが分かる。

“`python
print(r.status_code)
“`

# Webページから要素を抜き出す
## BeautifulSoup4を使わない場合
ページの内容(HTML)を取得し、\タグと\</p> <h1>タグを取得してみた。<br /> 正規表現を使うこともできるが難しそう。</p> <p>“`python<br /> text = r.text<br /> for line in text.split(‘\n’):<br /> if ‘<title>‘ in line or ‘</p> <h1>‘ in line:<br /> print(li</p></blockquote> </blockquote> <aside class='widget widget-post'> <div class='tag-cloud-link'>Python</div> <div class='tag-cloud-link'>スクレイピング</div> <div class='tag-cloud-link'>自然言語処理</div> <div class='tag-cloud-link'>Python3</div> </aside> <div><a style='width:100%;' class='btn__link' href='https://qiita.com/_kta/items/3b384e89b21d205e1b29'>元記事を表示</a></div> <h3 id="outline__15"><a href='https://qiita.com/simonritchie/items/db666a52d91cd5fab1cf'>Jupyterで特定のセルの入力と出力を参照する小ネタ</a></h3> <blockquote><p>Jupyterで特定のセルの入力値や出力値を別のセルから参照する際の短いライトな小ネタです。</p> <p># 使うもの</p> <p>– Python 3.9.0<br /> – Jupyter (notebook==6.4.7)</p> <p>※本記事ではVS Code上のJupyterを使っていきますが普通のJupyter notebookやJupyterLabなどでも動作すると思われます。</p> <p># 直前のセルの出力値を取得する</p> <p>アンダースコアの記号(`_`)を特定のセルで実行すると、直前に実行したセルの出力(notebookであれば`Out [n]:`といった表示になっている部分)を取ることができます。</p> <p>“`py:セル1<br /> x: int = 10 + 20<br /> x<br /> “`</p> <p>“`<br /> 30<br /> “`</p> <p>“`py:セル2<br /> y: int = x + 30<br /> y<br /> “`</p> <p>“`<br /> 60<br /> “`</p> <p>“`py:セル3<br /> _<br /> “`</p> <p>“`<br /> 60<br /> “`</p> <p>![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/228778/877a8116-9502</p></blockquote> </blockquote> <aside class='widget widget-post'> <div class='tag-cloud-link'>Python</div> <div class='tag-cloud-link'>Python3</div> <div class='tag-cloud-link'>Jupyter</div> <div class='tag-cloud-link'>VSCode</div> <div class='tag-cloud-link'>Jupyter-notebook</div> </aside> <div><a style='width:100%;' class='btn__link' href='https://qiita.com/simonritchie/items/db666a52d91cd5fab1cf'>元記事を表示</a></div> <h3 id="outline__16"><a href='https://qiita.com/startours777/items/552b6ae5a3ed2915406a'>Django Import xxx could not be resolved from source エラーの解決方法</a></h3> <blockquote><p>## 事象<br /> プロジェクト作成、startappコマンド後、以下のエラーが発生した。<br /> ようするに”django”関係がすべて読み込めていない。<br /> “`Import “django.contrib” could not be resolved from source<br /> Import “django.apps” could not be resolved from source<br /> Import “django.db” could not be resolved from source<br /> Import “django.shortcuts” could not be resolved from source“`<br /> ![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/2515586/2ae23339-e439-ef0b-08ce-535f5bf29042.png)</p> <p>## 環境<br /> Windows 10<br /> Python 3.10.2<br /> Django 4.0.1<br /> venv利用あり</p> <p>## 対処方法<br /> Pythonの補完には</p></blockquote> </blockquote> <aside class='widget widget-post'> <div class='tag-cloud-link'>Python</div> <div class='tag-cloud-link'>Django</div> <div class='tag-cloud-link'>Python3</div> </aside> <div><a style='width:100%;' class='btn__link' href='https://qiita.com/startours777/items/552b6ae5a3ed2915406a'>元記事を表示</a></div> <h3 id="outline__17"><a href='https://qiita.com/startours777/items/2d35f2c6de12071a4c77'>VSCode insiders venv activate時の「このシステムではスクリプトの実行が無効になっているため~」 エラーの解決</a></h3> <blockquote><p>## 事象<br /> PCを新調したのでPython開発環境を構築しようとvenv activate を実行しようとしたところ、<br /> 「このシステムではスクリプトの実行が無効になっているため、ファイル xxx .venv\Scripts\Activate.ps1 を読み込むことができません。」という<br /> エラーになったので対処法を記載<br /> 別のPCではならなかったので調べるに至った</p> <p>![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/2515586/dfb9afee-c6df-612c-97a7-fdc93df7723b.png)</p> <p>## 環境<br /> Windows 10<br /> Visual Studio Code insiders 1.64.0<br /> (Visual Studio Codeでも同じだと思う)<br /> Python 3.10.2</p> <p>## 対処<br /> Visual Studio Code insiders(以降、VSCode)の表示→コマンドパレットを押下し出てきた入力欄に「settings」と入力<br /> ![image.png](ht</p></blockquote> </blockquote> <aside class='widget widget-post'> <div class='tag-cloud-link'>Python</div> <div class='tag-cloud-link'>Python3</div> <div class='tag-cloud-link'>VSCode</div> </aside> <div><a style='width:100%;' class='btn__link' href='https://qiita.com/startours777/items/2d35f2c6de12071a4c77'>元記事を表示</a></div> <h3 id="outline__18"><a href='https://qiita.com/realintegrity/items/bb33d78057e4a69c4875'>CentOS7 + Python3 + Mecab + Doc2VecでWikipediaのデータを解析した記録</a></h3> <blockquote><p>本稿では、ウィキペディアの各単語に対する類似単語ベスト10を、ウィキペディアから抽出した記録を可能な限り詳しく書きました。<br /> #目次<br /> [1.はじめに](#1-はじめに)<br /> [2.本稿の目的](#2-本稿の目的)<br /> [3.作業環境](#3-作業環境)<br /> [4.最新のウィキペディアデータの取得](#4-最新のウィキペディアデータの取得)<br /> [5.テキストデータを抽出](#5-テキストデータを抽出)<br /> [6.pageとcategorylinksのデータをmysqlデータベースにインポート](#6-pageとcategorylinksのデータをmysqlデータベースにインポート)<br /> [7.mecabの辞書に単語を追加](#7-mecabの辞書に単語を追加)<br /> [8.テキストデータをmysqlデータベースに登録](#8-テキストデータをmysqlデータベースに登録)<br /> [9.doc2vecを用いた機械学習で類似単語を抽出](#9-doc2vecを用いた機械学習で類似単語を抽出)<br /> [10.目視での結果評価](#10-目視での結果評価)<br /> [11.後処理](#11-後処理)<br /> [12.スケジュール化](#12-スケジュー</p></blockquote> </blockquote> <aside class='widget widget-post'> <div class='tag-cloud-link'>mecab</div> <div class='tag-cloud-link'>Python3</div> <div class='tag-cloud-link'>Wikipedia</div> <div class='tag-cloud-link'>centos7</div> <div class='tag-cloud-link'>doc2vec</div> </aside> <div><a style='width:100%;' class='btn__link' href='https://qiita.com/realintegrity/items/bb33d78057e4a69c4875'>元記事を表示</a></div> <h3 id="outline__19"><a href='https://qiita.com/osorezugoing/items/a4d05f6cff002432cb63'>VSCode Python importエラー 上の階層の自作モジュールをインポートしたい</a></h3> <blockquote><p># 環境<br /> windows 10<br /> pyenv-win<br /> python 3.9.6</p> <p># ue_no_direcotryはどこ? (Pythonの気持ち)</p> <p>importは`sys.path`上に存在するパスから`相対パス`で目的のモジュールを探索するため、`sys.pathに存在しないパス(パスが通っていない)`自作モジュールなどではで`上の階層(ue_no_direcotry:この記事のヒロインの居場所)`を探索することができない。<br /> 標準モジュールやサードパーティーモジュールがどこからでもインポートできるというのは、それらのモジュールが`sys.pathの下の階層`にインストールされているからである。</p> <p>そうなんです、`sys.pathの下の階層`にあるモジュールならどこからでもインポートできるということなのです!当たり前のようなことですが、重要なことなので2回繰り返しました。ここでつまずいている人はこのことが理解できていないのだと思います。</p> <p>“`python:ルートのパスで実行すると<br /> import sys<br /> print(sys.path)<br /> “`</p> <p>“`:sys.pathの実行結果</p></blockquote> </blockquote> <aside class='widget widget-post'> <div class='tag-cloud-link'>Python</div> <div class='tag-cloud-link'>Python3</div> <div class='tag-cloud-link'>VSCode</div> </aside> <div><a style='width:100%;' class='btn__link' href='https://qiita.com/osorezugoing/items/a4d05f6cff002432cb63'>元記事を表示</a></div> <h3 id="outline__20"><a href='https://qiita.com/fix/items/421b2ec55ed0a3c88f45'>[pyinstaller] or [py2exe] でpyファイルをEXE化 (2022-01-22)</a></h3> <blockquote><p>前回、Windows10環境に、Python3をインストールしたので、今回は、exe化をやってみました。</p> <p>前回の記事:</p> <p>https://qiita.com/fix/items/cc31deda5daf0309d9f4</p> <p># pyinstaller をインストール</p> <p>![イメージ7598.jpg](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/503948/56646e80-1117-ef57-5c0a-dc363a90de47.jpeg)</p> <p># exe化テスト</p> <p>シンプルにprint文のみでとりあえずやってみます。</p> <p>“`python:Hello-Python.py<br /> # -*- coding: utf-8 -*-<br /> import sys<br /> print(“Hello,Python!”)<br /> “`</p> <p>一応、実行確認</p> <p>![イメージ7600.jpg](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/503948/771448b7-e974</p></blockquote> </blockquote> <aside class='widget widget-post'> <div class='tag-cloud-link'>Python3</div> <div class='tag-cloud-link'>py2exe</div> <div class='tag-cloud-link'>PyInstaller</div> </aside> <div><a style='width:100%;' class='btn__link' href='https://qiita.com/fix/items/421b2ec55ed0a3c88f45'>元記事を表示</a></div> </div> </section> <!-- 記事下シェアボタン --> <aside> <ul class="socialList"> <li class="socialList__item"><a class="socialList__link icon-facebook" href="http://www.facebook.com/sharer.php?u=https%3A%2F%2Fmiofactor.com%2F2022%2F01%2F26%2Fpost-16194%2F&t=Python3%E9%96%A2%E9%80%A3%E3%81%AE%E3%81%93%E3%81%A8%E3%82%92%E8%AA%BF%E3%81%B9%E3%81%A6%E3%81%BF%E3%81%9F2022%E5%B9%B401%E6%9C%8826%E6%97%A5" target="_blank" title="Facebookで共有"></a></li><li class="socialList__item"><a class="socialList__link icon-twitter" href="http://twitter.com/intent/tweet?text=Python3%E9%96%A2%E9%80%A3%E3%81%AE%E3%81%93%E3%81%A8%E3%82%92%E8%AA%BF%E3%81%B9%E3%81%A6%E3%81%BF%E3%81%9F2022%E5%B9%B401%E6%9C%8826%E6%97%A5&https%3A%2F%2Fmiofactor.com%2F2022%2F01%2F26%2Fpost-16194%2F&url=https%3A%2F%2Fmiofactor.com%2F2022%2F01%2F26%2Fpost-16194%2F" target="_blank" title="Twitterで共有"></a></li><li class="socialList__item"><a class="socialList__link icon-line" href="http://line.naver.jp/R/msg/text/?Python3%E9%96%A2%E9%80%A3%E3%81%AE%E3%81%93%E3%81%A8%E3%82%92%E8%AA%BF%E3%81%B9%E3%81%A6%E3%81%BF%E3%81%9F2022%E5%B9%B401%E6%9C%8826%E6%97%A5%0D%0Ahttps%3A%2F%2Fmiofactor.com%2F2022%2F01%2F26%2Fpost-16194%2F" target="_blank" title="LINEで送る"></a></li></ul> </aside> <!-- /記事下シェアボタン --> <!-- 記事下エリア[widget] --> <aside class="widgetPost widgetPost-bottom"><aside class="widget widget-post"><h2 class="heading heading-primary">タグ</h2><div class="tagcloud"><a href="https://miofactor.com/tag/%e3%81%9d%e3%81%ae%e4%bb%96/" class="tag-cloud-link tag-link-13 tag-link-position-1" style="font-size: 8pt;" aria-label="その他 (1個の項目)">その他</a></div> </aside></aside> <!-- /記事下エリア[widget] --> <!-- 関連記事 --> <aside class="related"><h2 class="heading heading-primary">関連する記事</h2><ul class="related__list"> <li class="related__item"> <a class="related__imgLink" href="https://miofactor.com/2024/09/12/post-36680/" title="Ruby関連のことを調べてみた"> <img src="https://miofactor.com/wp-content/uploads/2019/10/ruby-150x150.png" alt="Ruby関連のことを調べてみた" width="150" height="150" > </a> <h3 class="related__title"> <a href="https://miofactor.com/2024/09/12/post-36680/">Ruby関連のことを調べてみた</a> <span class="icon-calendar">2024.09.12</span> </h3> <p class="related__contents">目次 1. 【個人開発】サウナ後のご飯「サ飯」の情報共有ができるアプリを開発しました。2. Web開発エンジニアになるために3. 【個人開発】初めてg[…]</p> </li> <li class="related__item"> <a class="related__imgLink" href="https://miofactor.com/2022/08/29/post-22036/" title="Rails関連のことを調べてみた2022年08月29日"> <img src="https://miofactor.com/wp-content/uploads/2019/10/rails-150x150.png" alt="Rails関連のことを調べてみた2022年08月29日" width="150" height="150" > </a> <h3 class="related__title"> <a href="https://miofactor.com/2022/08/29/post-22036/">Rails関連のことを調べてみた2022年08月29日</a> <span class="icon-calendar">2022.08.29</span> </h3> <p class="related__contents">目次 1. renderとredirect_toによる画面遷移について2. カラム追加、削除コマンド3. RDBのユニーク制約とRailsのユニークバ[…]</p> </li> <li class="related__item"> <a class="related__imgLink" href="https://miofactor.com/2022/05/07/post-18838/" title="JAVA関連のことを調べてみた2022年05月07日"> <img src="https://miofactor.com/wp-content/uploads/2019/10/java-150x150.jpg" alt="JAVA関連のことを調べてみた2022年05月07日" width="150" height="150" > </a> <h3 class="related__title"> <a href="https://miofactor.com/2022/05/07/post-18838/">JAVA関連のことを調べてみた2022年05月07日</a> <span class="icon-calendar">2022.05.07</span> </h3> <p class="related__contents">目次 1. Doma2でMergeを利用する2. ガチャで使う乱数を考えてみる3. Java17でGradleビルド時に「Unrecognized V[…]</p> </li> </ul></aside> <!-- /関連記事 --> <!-- コメント --> <!-- /コメント --> <!-- PVカウンター --> <!-- /PVカウンター --> </main> <!-- /l-main --> <!-- l-sidebar --> <div class="l-sidebar"> <aside class="widget"> <div class="searchBox"> <form class="searchBox__form" method="get" target="_top" action="https://miofactor.com/" > <input class="searchBox__input" type="text" maxlength="50" name="s" placeholder="記事検索"><button class="searchBox__submit icon-search" type="submit" value="search"> </button> </form> </div></aside><aside class="widget"><h2 class="heading heading-widget">Category</h2> <ul> <li class="cat-item cat-item-1"><a href="https://miofactor.com/category/other/">OTHER</a> </li> </ul> </aside><aside class="widget"><h2 class="heading heading-widget">Back number</h2> <ul> <li><a href='https://miofactor.com/2024/09/'>2024年9月</a></li> <li><a href='https://miofactor.com/2024/08/'>2024年8月</a></li> <li><a href='https://miofactor.com/2024/07/'>2024年7月</a></li> <li><a href='https://miofactor.com/2024/06/'>2024年6月</a></li> <li><a href='https://miofactor.com/2024/05/'>2024年5月</a></li> <li><a href='https://miofactor.com/2024/04/'>2024年4月</a></li> <li><a href='https://miofactor.com/2024/03/'>2024年3月</a></li> <li><a href='https://miofactor.com/2024/02/'>2024年2月</a></li> <li><a href='https://miofactor.com/2024/01/'>2024年1月</a></li> <li><a href='https://miofactor.com/2023/12/'>2023年12月</a></li> <li><a href='https://miofactor.com/2023/11/'>2023年11月</a></li> <li><a href='https://miofactor.com/2023/10/'>2023年10月</a></li> <li><a href='https://miofactor.com/2023/09/'>2023年9月</a></li> <li><a href='https://miofactor.com/2023/08/'>2023年8月</a></li> <li><a href='https://miofactor.com/2023/07/'>2023年7月</a></li> <li><a href='https://miofactor.com/2023/04/'>2023年4月</a></li> <li><a href='https://miofactor.com/2023/03/'>2023年3月</a></li> <li><a href='https://miofactor.com/2023/02/'>2023年2月</a></li> <li><a href='https://miofactor.com/2023/01/'>2023年1月</a></li> <li><a href='https://miofactor.com/2022/12/'>2022年12月</a></li> <li><a href='https://miofactor.com/2022/11/'>2022年11月</a></li> <li><a href='https://miofactor.com/2022/10/'>2022年10月</a></li> <li><a href='https://miofactor.com/2022/09/'>2022年9月</a></li> <li><a href='https://miofactor.com/2022/08/'>2022年8月</a></li> <li><a href='https://miofactor.com/2022/07/'>2022年7月</a></li> <li><a href='https://miofactor.com/2022/06/'>2022年6月</a></li> <li><a href='https://miofactor.com/2022/05/'>2022年5月</a></li> <li><a href='https://miofactor.com/2022/04/'>2022年4月</a></li> <li><a href='https://miofactor.com/2022/03/'>2022年3月</a></li> <li><a href='https://miofactor.com/2022/02/'>2022年2月</a></li> <li><a href='https://miofactor.com/2022/01/'>2022年1月</a></li> <li><a href='https://miofactor.com/2021/12/'>2021年12月</a></li> <li><a href='https://miofactor.com/2021/11/'>2021年11月</a></li> <li><a href='https://miofactor.com/2021/10/'>2021年10月</a></li> <li><a href='https://miofactor.com/2021/09/'>2021年9月</a></li> <li><a href='https://miofactor.com/2021/08/'>2021年8月</a></li> <li><a href='https://miofactor.com/2021/07/'>2021年7月</a></li> <li><a href='https://miofactor.com/2021/06/'>2021年6月</a></li> <li><a href='https://miofactor.com/2021/05/'>2021年5月</a></li> <li><a href='https://miofactor.com/2021/04/'>2021年4月</a></li> <li><a href='https://miofactor.com/2021/03/'>2021年3月</a></li> <li><a href='https://miofactor.com/2021/02/'>2021年2月</a></li> <li><a href='https://miofactor.com/2021/01/'>2021年1月</a></li> <li><a href='https://miofactor.com/2020/12/'>2020年12月</a></li> <li><a href='https://miofactor.com/2020/11/'>2020年11月</a></li> <li><a href='https://miofactor.com/2020/10/'>2020年10月</a></li> <li><a href='https://miofactor.com/2020/09/'>2020年9月</a></li> <li><a href='https://miofactor.com/2020/08/'>2020年8月</a></li> <li><a href='https://miofactor.com/2020/07/'>2020年7月</a></li> <li><a href='https://miofactor.com/2020/06/'>2020年6月</a></li> <li><a href='https://miofactor.com/2020/05/'>2020年5月</a></li> <li><a href='https://miofactor.com/2020/04/'>2020年4月</a></li> <li><a href='https://miofactor.com/2020/03/'>2020年3月</a></li> <li><a href='https://miofactor.com/2020/02/'>2020年2月</a></li> <li><a href='https://miofactor.com/2020/01/'>2020年1月</a></li> <li><a href='https://miofactor.com/2019/12/'>2019年12月</a></li> <li><a href='https://miofactor.com/2019/11/'>2019年11月</a></li> <li><a href='https://miofactor.com/2019/10/'>2019年10月</a></li> </ul> </aside> </div> <!-- /l-sidebar --> </div> <!-- /l-wrapper --> <div class="categoryBox"> <div class="container"> <h2 class="heading heading-primary"> <span class="heading__bg u-txtShdw bgc-darkgray">OTHER</span>カテゴリの最新記事 </h2> <ul class="categoryBox__list"> <li class="categoryBox__item"> <div class="eyecatch eyecatch-archive"> <a href="https://miofactor.com/2024/09/19/post-36890/"> <img src="https://miofactor.com/wp-content/uploads/2019/10/js-554x410.png" alt="JavaScript関連のことを調べてみた" width="554" height="410" > </a> </div> <ul class="dateList dateList-archive"> <li class="dateList__item icon-calendar">2024.09.19</li> </ul> <h2 class="heading heading-archive "> <a class="hc-darkgray" href="https://miofactor.com/2024/09/19/post-36890/">JavaScript関連のことを調べてみた</a> </h2> </li> <li class="categoryBox__item"> <div class="eyecatch eyecatch-archive"> <a href="https://miofactor.com/2024/09/19/post-36891/"> <img src="https://miofactor.com/wp-content/uploads/2019/10/java.jpg" alt="JAVA関連のことを調べてみた" width="540" height="270" > </a> </div> <ul class="dateList dateList-archive"> <li class="dateList__item icon-calendar">2024.09.19</li> </ul> <h2 class="heading heading-archive "> <a class="hc-darkgray" href="https://miofactor.com/2024/09/19/post-36891/">JAVA関連のことを調べてみた</a> </h2> </li> <li class="categoryBox__item"> <div class="eyecatch eyecatch-archive"> <a href="https://miofactor.com/2024/09/19/post-36894/"> <img src="https://miofactor.com/wp-content/uploads/2019/10/ios-554x410.png" alt="iOS関連のことを調べてみた" width="554" height="410" > </a> </div> <ul class="dateList dateList-archive"> <li class="dateList__item icon-calendar">2024.09.19</li> </ul> <h2 class="heading heading-archive "> <a class="hc-darkgray" href="https://miofactor.com/2024/09/19/post-36894/">iOS関連のことを調べてみた</a> </h2> </li> <li class="categoryBox__item"> <div class="eyecatch eyecatch-archive"> <a href="https://miofactor.com/2024/09/19/post-36888/"> <img src="https://miofactor.com/wp-content/uploads/2019/10/rails-725x410.png" alt="Rails関連のことを調べてみた" width="725" height="410" > </a> </div> <ul class="dateList dateList-archive"> <li class="dateList__item icon-calendar">2024.09.19</li> </ul> <h2 class="heading heading-archive "> <a class="hc-darkgray" href="https://miofactor.com/2024/09/19/post-36888/">Rails関連のことを調べてみた</a> </h2> </li> <li class="categoryBox__item"> <div class="eyecatch eyecatch-archive"> <a href="https://miofactor.com/2024/09/19/post-36884/"> <img src="https://miofactor.com/wp-content/uploads/2019/10/lambda.png" alt="Lambda関連のことを調べてみた" width="360" height="230" > </a> </div> <ul class="dateList dateList-archive"> <li class="dateList__item icon-calendar">2024.09.19</li> </ul> <h2 class="heading heading-archive "> <a class="hc-darkgray" href="https://miofactor.com/2024/09/19/post-36884/">Lambda関連のことを調べてみた</a> </h2> </li> <li class="categoryBox__item"> <div class="eyecatch eyecatch-archive"> <a href="https://miofactor.com/2024/09/19/post-36886/"> <img src="https://miofactor.com/wp-content/uploads/2019/10/python-640x410.png" alt="Python関連のことを調べてみた" width="640" height="410" > </a> </div> <ul class="dateList dateList-archive"> <li class="dateList__item icon-calendar">2024.09.19</li> </ul> <h2 class="heading heading-archive "> <a class="hc-darkgray" href="https://miofactor.com/2024/09/19/post-36886/">Python関連のことを調べてみた</a> </h2> </li> </ul> </div> </div> <!-- schema --> <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "Article ", "mainEntityOfPage":{ "@type": "WebPage", "@id": "https://miofactor.com/2022/01/26/post-16194/" }, "headline": "Python3関連のことを調べてみた2022年01月26日", "image": { "@type": "ImageObject", "url": "https://miofactor.com/wp-content/uploads/2019/10/python-640x410.png", "height": "410", "width": "640" }, "datePublished": "2022-01-26T11:50:52+0900", "dateModified": "2022-01-26T11:50:52+0900", "author": { "@type": "Person", "name": "editor" }, "publisher": { "@type": "Organization", "name": "f@ctor", "logo": { "@type": "ImageObject", "url": "", "width": "", "height":"" } }, "description": "目次 1. 地震波形データをPythonで読み込んでみよう2. python async 実行記録3. Jupyter RuntimeErrorの対処方法 asyncio.run() cannot be called from a running event loop4. Python3: 接種状況ダッシュボードのデータを使ってワクチン接種済者をカウントする5. 青空文庫を使ってネガポジ判定をやっ […]" } </script> <!-- /schema --> <!--l-footer--> <footer class="l-footer"> <div class="container"> <div class="pagetop u-txtShdw"><a class="pagetop__link" href="#top">Back to Top</a></div> <div class="widgetFoot"> <div class="widgetFoot__contents"> </div> <div class="widgetFoot__contents"> <aside class="widget widget-foot"><h2 class="heading heading-footer">タグ</h2><div class="tagcloud"><a href="https://miofactor.com/tag/%e3%81%9d%e3%81%ae%e4%bb%96/" class="tag-cloud-link tag-link-13 tag-link-position-1" style="font-size: 8pt;" aria-label="その他 (1個の項目)">その他</a></div> </aside> </div> <div class="widgetFoot__contents"> </div> </div> <div class="copySns "> <div class="copySns__copy"> © Copyright 2024 <a class="copySns__copyLink" href="https://miofactor.com">f@ctor</a>. <span class="copySns__copyInfo u-none"> f@ctor by <a class="copySns__copyLink" href="http://fit-jp.com/" target="_blank">FIT-Web Create</a>. Powered by <a class="copySns__copyLink" href="https://wordpress.org/" target="_blank">WordPress</a>. </span> </div> </div> </div> </footer> <!-- /l-footer --> <script type="text/javascript" src="https://miofactor.com/wp-includes/js/comment-reply.min.js?ver=6.4.1" id="comment-reply-js" async="async" data-wp-strategy="async"></script> <script> function toggle__search(){ extra__search.className="l-extra"; extra__menu.className="l-extraNone"; menuNavi__search.className = "menuNavi__link menuNavi__link-current icon-search "; menuNavi__menu.className = "menuNavi__link icon-menu"; } function toggle__menu(){ extra__search.className="l-extraNone"; extra__menu.className="l-extra"; menuNavi__search.className = "menuNavi__link icon-search"; menuNavi__menu.className = "menuNavi__link menuNavi__link-current icon-menu"; } </script><script>Array.prototype.forEach.call(document.getElementsByClassName("css-async"),function(e){e.rel = "stylesheet"});</script> </body> </html>