1. на координатной плоскости отметьте и пон
и отметьте и подпишите точки со
следующими координатами: a(2,5), b(6,5), с (11,7)
е(6,2), f(2,2), g(4,8), н(9,9), і(3,2), (3,4), k(5,4), l (5,2)
соедините точки: а — в — с — d — e — f — а — g-
h — с. g — в — e. i — j — к — l.
после проверки правильности выполнения по
раскрасить полученную картинку цветными карандашами.
Ответы на вопрос:
QPython+SL4A:
import android
import time
import sys, select, os #for loop exit
#Initiate android-module
droid = android.Android()
#notify me
droid.makeToast("fetching GPS data")
print("start gps-sensor...")
droid.startLocating()
while True:
#exit loop hook
if sys.stdin in select.select([sys.stdin], [], [], 0)[0]:
line = input()
print("exit endless loop...")
break
#wait for location-event
event = droid.eventWaitFor('location',10000).result
if event['name'] == "location":
try:
#try to get gps location data
timestamp = repr(event['data']['gps']['time'])
longitude = repr(event['data']['gps']['longitude'])
latitude = repr(event['data']['gps']['latitude'])
altitude = repr(event['data']['gps']['altitude'])
speed = repr(event['data']['gps']['speed'])
accuracy = repr(event['data']['gps']['accuracy'])
loctype = "gps"
except KeyError:
#if no gps data, get the network location instead (inaccurate)
timestamp = repr(event['data']['network']['time'])
longitude = repr(event['data']['network']['longitude'])
latitude = repr(event['data']['network']['latitude'])
altitude = repr(event['data']['network']['altitude'])
speed = repr(event['data']['network']['speed'])
accuracy = repr(event['data']['network']['accuracy'])
loctype = "net"
data = loctype + ";" + timestamp + ";" + longitude + ";" + latitude + ";" + altitude + ";" + speed + ";" + accuracy
print(data) #logging
time.sleep(5) #wait for 5 seconds
print("stop gps-sensor...")
droid.stopLocating()
Популярно: Информатика
-
крутелик922.02.2023 20:48
-
жансаяболатова25.03.2023 06:25
-
СГлазамиЦветаСчастья20.10.2021 13:59
-
happymenfeed12.06.2020 18:07
-
mssinkevichna23.08.2020 02:15
-
мейірімді01.02.2021 00:17
-
ЛюдмилаРябченко10.06.2021 05:54
-
qhahz14.04.2023 03:05
-
olardaniil201709.02.2022 21:23
-
Asandyana03.04.2023 18:15