Skip to content

Instantly share code, notes, and snippets.

View geeeksan's full-sized avatar

geeeksan

View GitHub Profile
import numpy as np
file = open(‘liquid.325K.gro’, ‘r’) #読み込みモードでオープン
string = file.read() #readですべて読み込む
print(np.sum(string))
print(np.mean(string))
print(np.min(string))
print(np.max())