Skip to content

Instantly share code, notes, and snippets.

@geeeksan
Created November 28, 2018 00:49
Show Gist options
  • Save geeeksan/a25de0d0627eafc11e87963cb543793b to your computer and use it in GitHub Desktop.
Save geeeksan/a25de0d0627eafc11e87963cb543793b to your computer and use it in GitHub Desktop.
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())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment