お世話になります。
Python2.7.12チュートリアル:http://docs.python.jp/2.7/tutorial/classes.html
クラスの部分を勉強しています。その中の9.11部分ですが
from math import pi, sin
sine_table = dict((x, sin(x*pi/180)) for x in range(0, 91))
unique_words = set(word for line in page for word in line.split())
valedictorian = max((student.gpa, student.name) for student in graduates)
unique_words = set(word for line in page for word in line.split())
valedictorian = max((student.gpa, student.name) for student in graduates)この2つのコードで’page'と’graduates’のnameErrorが出ます
この場合のErrorを出さなくするには事前にどうすればよいのでしょうか?
ご教授ください。。よろしくお願いいたします
回答3件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/11/30 00:04