原创 Arduino溫溼度監測與股票漲跌提醒

通過Arduino,實現如下兩個功能: 主要包含溫溼度傳感器及相關的加熱、加溼、製冷、除溼設備,通過對環境溫度及溼度的測量來控制具體設備的工作狀態,根據相關指示燈顏色來區分工作狀態。 對於指定股票實時監測,並且在股票價額有較大波動時提醒使

原创 基於twilio的短信天氣提醒功能

Twilio是一個做成開放插件的電話跟蹤服務,可以通過twilio相關功能接入物聯網設備達到及時提醒的功能。 本程序代碼需要註冊twilio賬號,並部署在服務器,可實現每天定時短信天氣提醒。 服務器send.py程序: #coding=

原创 python3 AttributeError: module 'urllib' has no attribute 'urlopen'問題

import urllib url='xxx' a=urllib.urlopen(url) print(a.read()) 如此寫會報題目所示錯誤,改爲如下代碼即可。 import urllib.requset url='xxx

原创 c++萬能頭文件頭文件bits/stdc++.h

#include <bits/stdc++.h>包含了諸多頭文件的頭文件,用後不再擔憂長長一串串頭文件,c11已支持。

原创 Leetcode 997. Find the Town Judge

In a town, there are N people labelled from 1 to N.  There is a rumor that one of these people is secretly the town jud

原创 改變圖片分辨率

from PIL import Image path=r"*.JPG" im=Image.open(path) size=28,28 name=r"*-1.JPG" im.thumbnail(size) im.save(name,

原创 神經網絡編程

import numpy import scipy.special #import matplotlib.pyplot class neuralNetwork: def __init__(self,inputnodes,hid

原创 自動運行腳本

控制面板------管理工具------任務計劃程序  中可編輯腳本自動運行。 之前還傻傻地寫while(true)一直運行腳本。 orz

原创 python 多行註釋 unicode error 問題

""" input_file=r'C:\Users\wenmiao_\Desktop\pya\data.csv' file_reader=csv.reader(open(input_file,'r'),delimiter=',') he

原创 Python數據分析基礎第5章例

5.1:  import sys import csv import glob import os from datetime import date from xlrd import open_workbook,xldate_as_t

原创 mysql找不到my.ini及.err錯誤日誌解決方法

隱藏文件可視 c盤目錄下url目錄輸入%ProgramData% 進入隱藏的programdata文件夾 找到mysql文件夾 進入後即可看見my.ini 進入data文件夾即可看見.err錯誤日誌

原创 LeetCode 946. Validate Stack Sequences

Given two sequences pushed and popped with distinct values, return true if and only if this could have been the result

原创 LeetCode 948. Bag of Tokens

You have an initial power P, an initial score of 0 points, and a bag of tokens. Each token can be used at most once, ha

原创 LeetCode 945. Minimum Increment to Make Array Unique

Given an array of integers A, a move consists of choosing any A[i], and incrementing it by 1. Return the least number o

原创 Failed building wheel for xxx 解決辦法

在下面鏈接下載相應whl 下載whl鏈接 安裝 pip install 剛剛下載whl文件絕對路徑