学习日志
#作业
mark=[]
def markreg(student,ask):
mark.append(student)
print("当前打卡人数为:",len(mark))
for ask in mark:
if ask==student:
flag=1
else:
flag=0
markstudent=""
while markstudent!="打卡完毕":
markstudent=input("今天你打卡了吗?你是谁?")
markreg(markstudent)
#会读色块代码
import sensor, image, time, math
threshold_index = 0 # 0 for red, 1 for green, 2 for blue
# Color Tracking Thresholds (L Min, L Max, A Min, A Max, B Min, B Max)
# The below thresholds track in general red/green/blue things. You may wish to tune them...
thresholds = [(30, 100, 15, 127, 15, 127), # generic_red_thresholds
(30, 100, -64, -8, -32, 32), # generic_green_thresholds
(0, 30, 0, 64, -128, 0)] # generic_blue_thresholds