This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from astro_pi import AstroPi | |
import time | |
import sys | |
ap = AstroPi() | |
f = open("data_file.txt", "w") | |
for i in range (0,10): | |
localtime = time.asctime(time.localtime(time.time())) | |
print localtime |