摘要:代码: import requests from bs4 import BeautifulSoup r=requests.get("http://exesoft.gitee.io/webshow/spider.html") r.encoding="utf-8" soup=BeautifulSoup(
阅读全文
05 2020 档案
摘要:代码1: a=[3.45,4.45,5] b=[5,4] c=["aa",456,True] myList=[] myList.append(a) myList.append(b) myList.append(c) print(myList) 代码2: #coding=utf-8 list=[] f
阅读全文
摘要:代码1: <!doctype html> <html> <head> <meta charset="utf-8"> <title>transition动画</title> <style type="text/css"> div { width: 200px; height: 200px; backg
阅读全文
摘要:代码如下: <!doctype html> <html> <head> <meta charset="utf-8"> <title>Rotate 转动动画测试</title> <style type="text/css"> .box{ width:280px; height:280px; backg
阅读全文
摘要:代码1: import tkinter.filedialog from tkinter import * from tkinter import messagebox def OpenFile(): filename=filedialog.askopenfilename() messagebox.s
阅读全文
摘要:代码如下: <!doctype html> <html> <head> <meta charset="utf-8"> <title>CSS3 Animation</title> <style type="text/css"> @keyframes myani { from { background:
阅读全文
摘要:代码演示: import tkinter as tk from tkinter import messagebox as msgbox def LoginFun(): sPass=enPass.get() if(sPass=="htzd"): labTip.config(text="登录成功。密码是
阅读全文
摘要:代码: <!doctype html> <html> <head> <meta charset="utf-8"> <title>CSS Grid Show</title> <style type="text/css"> *{ margin:0; } html,body{ height:100%; }
阅读全文
摘要:1.DemoA:Console控制台程序 print("Console控制台程序登录演示") sPass=input("请输入密码:\n") if(sPass=="htzd"): print("登录成功.密码是:{0}".format(sPass)) else: print("登录失败.密码是:{0
阅读全文
摘要:CSS Grid布局入门 1.普通版 <!doctype html> <html> <head> <meta charset="utf-8"> <title>Css Grid Demo</title> <style> .container { display: grid; grid-gap: 5px
阅读全文
摘要:Python中count()方法应用汇总 #1 sentence="This is is an example cutting." for word in sentence.split(): print(word,sentence.count(word)) #2 sentence="This is
阅读全文
摘要:伪元素及Counter的使用 <!doctype html> <html> <head> <meta charset="utf-8"> <title>伪元素及Counter的使用</title> <style type="text/css"> ul { list-style-type: none;
阅读全文
摘要:CSS 伪类用于向某些选择器添加特殊的效果。 CSS 伪元素用于向某些选择器添加特殊元素。 新建一个html文件,代码内容如下: <!doctype html> <html> <head> <meta charset="utf-8"> <title>Pseudo Class And Pseudo E
阅读全文
摘要:1.第一种方法:引入css,或者cdn css或者本地css <!doctype html> <html> <head> <meta charset="utf-8"> <title>Pseudo Element</title> <link rel="stylesheet" type="text/cs
阅读全文
浙公网安备 33010602011771号