本文整理汇总了Python中student.Student.printCourses方法的典型用法代码示例。如果您正苦于以下问题:Python Student.printCourses方法的具体用法?Python Student.printCourses怎么用?Python Student.printCourses使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类student.Student
的用法示例。
在下文中一共展示了Student.printCourses方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: print
# 需要导入模块: from student import Student [as 别名]
# 或者: from student.Student import printCourses [as 别名]
# (Optional) Lets the parser know which classes matter for major.
# If the Major is set, as above, this will be done automatically.
# This is legacy code, useful for testing new variations of Major requirements
#p.defineMajorReqs("DATA/required_PHY_courses.csv")
#p.defineMajorReqs()
# (Required) Parse text transcript for any classes
# Class defined as two or three letters, followed by two or three spaces,
# and then two or three numbers.
p.parseTranscript("DATA/jesse_unofficial_transcript.txt")
# (Required) Compare the Major requirements to the parsed transcript
p.compareMajorToTranscript()
# (Optional) Prints out Major Requirements in a Block Format
p.printMajorReqs()
print("")
print("-----")
print("")
# (Optional) Prints out all classes in the transcript
p.printCourses()
print("")
print("-----")
print("")
print("End driver")