摘要: 2025010089张静文 摄像头拍照 import cv2 # 打开摄像头 cap = cv2.VideoCapture(0) # 拍摄一帧图像 ret, frame = cap.read() if ret: # 保存图片 cv2.imwrite("photo.jpg", frame) print 阅读全文
posted @ 2026-04-19 00:36 困——猫 阅读(6) 评论(0) 推荐(0)
摘要: + 2025010089张静文 判断三角形 # 输入三个数 a, b, c = map(float, input("输入三个数:").split()) # 排序,让 c 最大 a, b, c = sorted([a, b, c]) # 判断能不能构成三角形 if a + b <= c: print( 阅读全文
posted @ 2026-03-11 12:11 困——猫 阅读(3) 评论(0) 推荐(0)