Skip to content

Commit

Permalink
Merge pull request #47 from cdlab-sit/sota
Browse files Browse the repository at this point in the history
openで実装
  • Loading branch information
Sota-Watanabe authored Mar 2, 2019
2 parents 9bdf0ab + cd51595 commit ccde4b6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Sota222/10.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# 行数をカウントせよ.確認にはwcコマンドを用いよ.

# Python
f = open('hightemp.txt', 'r')
print(len(f.readlines()))
f.close

# UNIX
# wc -l hightemp.txt

0 comments on commit ccde4b6

Please sign in to comment.