0

新しいクラスの詳細を自動的に更新するテキスト ファイルを取得しようとしています。

# Example variables
completed = Yes
class = 13A
time = 11:00

if completed:
    # Check data class and time variables against text file and if they don't exist then add them, if they do exist do nothing.

私のテキストファイルは次のようになります:

13A
11:00
Top Students: Joe Smith, Tom Clarke, Jenna Sole
Top 3 
Attendance: 98.5%
Class Score: 54
Yes

13B
11:10
Top Students: Anni Moy, Jessica Longate, Phillip Tome
T3 
Attendance: 98.5%
Class Score: 54
Yes

14A
11:10
Top Students: John Doe, John Smith, Sam Ben
T2 
Attendance: 98.5%
Class Score: 54
Yes

これを行う方法を知っている人はいますか?

4

1 に答える 1