Upload the program to Google hard drive in advance
enter:
from google.colab import drive
drive.mount('/content/drive')
Click the blue link, log in to your google account, get the authorization code, and paste and press Enter.
enter:
!ls '/content/drive/My Drive'
View the catalog.
enter:
cd drive/………………
Change the directory to the py directory to be run.
enter:
!python3 Train.py
Run the py program.