摘要:
json import requestsimport jsonurl="https://sp0.baidu.com/5a1Fazu8AA54nxGko9WTAnF6hhy/su?wd=na&json=1&p=3&sid=1459_19036_21110_25227_25436_25178&req=2 阅读全文
posted @ 2017-12-29 23:00
Justice-V
阅读(818)
评论(0)
推荐(0)
摘要:
三极管结构图 蜂鸣器 #include <reg52.h>sbit led=P1^0;sbit key=P3^0;sbit key2=P3^1;sbit key3=P3^2;sbit buzzer=P2^3; void delay(unsigned int x){ unsigned char i; 阅读全文
posted @ 2017-12-29 21:05
Justice-V
阅读(818)
评论(0)
推荐(0)
摘要:
#include<reg52.h>sbit led=P1^2; //定义端口为P1.2void delay(unsigned int x) //延时函数,x为传递参数{ unsigned char i; while(x--) { for(i=0;i<120;i++); }} void main(vo 阅读全文
posted @ 2017-12-29 18:54
Justice-V
阅读(1940)
评论(0)
推荐(0)
摘要:
#include<reg52.h> sbit led=P1^0; //定义端口P1.0 void main(void) { led=0; while(1);//让程序停留 } 具体的步骤 1.打开软件 2. 阅读全文
posted @ 2017-12-29 18:06
Justice-V
阅读(215)
评论(0)
推荐(0)
摘要:
#include<reg52.h> sbit du=P2^0; //定义一个端口 sbit we=P2^1; 阅读全文
posted @ 2017-12-29 16:50
Justice-V
阅读(83)
评论(0)
推荐(0)
摘要:
查找网页中<a>标签中的链接from bs4 import BeautifulSoupwith open('beautifulSoup_test.html','r',encoding='utf-8')as f: #beautifulSoup_test.html是同级网页源代码 bs=Beautifu 阅读全文
posted @ 2017-12-29 14:38
Justice-V
阅读(372)
评论(0)
推荐(0)
摘要:
【1】match()方法 该方法接受两个参数:第一个参数是模式字符串;第二个参数是字符串; 【注】该方法使用模式字符串从第二个参数给定的字符串的起始位置进行匹配 import re date_s='2017_12_28' m=re.match(r'2016' ,date_s) >>> <_sre.S 阅读全文
posted @ 2017-12-29 14:31
Justice-V
阅读(101)
评论(0)
推荐(0)
摘要:
0 101 202 303 404 505 60 阅读全文
posted @ 2017-12-29 13:10
Justice-V
阅读(199)
评论(0)
推荐(0)
摘要:
import randomrandom.seed(20)print(random.random())random.seed(10) #random.seed()指定随机数,与下面的相同的种子值print(random.random())random.seed(20)print(random.rand 阅读全文
posted @ 2017-12-29 12:59
Justice-V
阅读(159)
评论(0)
推荐(0)
摘要:
【集合的特点就是无序且无重复元素】 s1=set(['a','b','c']) #第一种【空集合情况适合使用】 print('s1') s2={1,2,3,4,5,6} #第二种 print(s2) 集合元素的添加 可以使用add()方法向集合中添加一个元素,或者使用update()方法向集合中添加 阅读全文
posted @ 2017-12-29 10:57
Justice-V
阅读(88)
评论(0)
推荐(0)

浙公网安备 33010602011771号