e媒网络

一切皆可能 e媒网络 http://www.eMay.net

博客园 首页 新随笔 联系 订阅 管理

随笔分类 -  教学

上一页 1 2 3 4 下一页

摘要:1.用Python做网络爬虫,一般需要哪两个步骤?而且需要哪些库的辅助?这些库有什么作用?参考教材P2622.使用字典格式,对一个学生的成绩进行文件读写?参考博客:https://www.cnblogs.com/exesoft/p/13354273.html 阅读全文
posted @ 2020-07-27 17:09 e媒网络技术团队 阅读(124) 评论(0) 推荐(0)

摘要:字典写入json文件中: import json stu_mark={} stu_mark["Name"]=input("Name=") stu_mark["English"]=float(input("English=")) stu_mark["Music"]=float(input("Music 阅读全文
posted @ 2020-07-21 11:52 e媒网络技术团队 阅读(135) 评论(0) 推荐(0)

摘要:import re from bs4 import BeautifulSoup htmlDoc='''<!DOCTYPE html><html><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edg 阅读全文
posted @ 2020-07-16 09:14 e媒网络技术团队 阅读(432) 评论(0) 推荐(0)

摘要:1.用Asp.net Form技术创建一个简单的加法应用。 前台代码: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddDemo.aspx.cs" Inherits="AddDemo" %> <!DOCTYPE html> <ht 阅读全文
posted @ 2020-07-13 11:22 e媒网络技术团队 阅读(420) 评论(0) 推荐(0)

摘要:use WebShowDBAlter go 1 declare @str nvarchar(50) select @str=DodgeRaterID from Student where ID='03' select dbo.Get_StrArrayStrOfIndex(@str,',',3) 2 阅读全文
posted @ 2020-07-10 17:23 e媒网络技术团队 阅读(245) 评论(0) 推荐(0)

摘要:可折叠A: <!DOCTYPE html> <html> <head> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.css"> <script src="http:/ 阅读全文
posted @ 2020-07-07 18:14 e媒网络技术团队 阅读(193) 评论(0) 推荐(0)

摘要:前端参考代码: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html> <html xmlns="http://www.w3.org 阅读全文
posted @ 2020-07-05 14:03 e媒网络技术团队 阅读(205) 评论(0) 推荐(0)

摘要:第一步: 创建一个Html5文件: 第二步: 代码如下: import re from bs4 import BeautifulSoup htmlDoc='''<!DOCTYPE html><html><head><meta charset="utf-8"><meta http-equiv="X-U 阅读全文
posted @ 2020-07-03 15:40 e媒网络技术团队 阅读(1680) 评论(0) 推荐(0)

摘要:第一步: 设计表格MaxMin,结构如下: 里面填满了测试数据: 第二步: 写测试代码: select PlayerSID, max(case RaterName when 'pw01' then MaxSign1+MinSign1+MaxSign2+MinSign2 else '' end) as 阅读全文
posted @ 2020-06-30 18:17 e媒网络技术团队 阅读(185) 评论(0) 推荐(0)

摘要:爬网演练代码1: import requests from bs4 import BeautifulSoup url = 'https://www.cnblogs.com/exesoft/p/13184331.html' r = requests.get(url, timeout=30) r.enc 阅读全文
posted @ 2020-06-24 09:32 e媒网络技术团队 阅读(210) 评论(0) 推荐(0)

摘要:content-box:padding和border不被包含在定义的width和height之内。对象的实际宽度等于设置的width值和border、padding之和,即 ( Element width = width + border + padding ).此属性表现为标准模式下的盒模型。bo 阅读全文
posted @ 2020-06-22 11:16 e媒网络技术团队 阅读(249) 评论(0) 推荐(0)

摘要:训练代码1:全局变量及局部变量的作用域测试 运行结果分别是: 2 1 2 2 3 3 1 训练代码2:划五角星并填充 效果: 阅读全文
posted @ 2020-06-18 11:12 e媒网络技术团队 阅读(204) 评论(0) 推荐(0)

摘要:Grid技术+动画技术 示范: <!doctype html> <html> <head> <meta charset="utf-8"> <title>Grid Animate Demo</title> <style type="text/css"> html { box-sizing: borde 阅读全文
posted @ 2020-06-13 07:44 e媒网络技术团队 阅读(90) 评论(0) 推荐(0)

摘要:名称叫法 这种方式在业界上统称:识别码、前缀-ms代表【ie】内核识别码-moz代表火狐【firefox】内核识别码-webkit代表谷歌【chrome】/苹果【safari】内核识别码-o代表欧朋【opera】内核识别码 在CSS3中的用法 -ms-transform:rotate(7deg); 阅读全文
posted @ 2020-06-09 11:32 e媒网络技术团队 阅读(865) 评论(0) 推荐(0)

摘要:代码1: 划一个简单的x及y轴,标出原点O及坐标为(100,100)的A点。 import turtle turtle.goto(0,0) turtle.dot(20,"yellow") turtle.write("O", font=('Arial', 10, 'normal')) turtle.f 阅读全文
posted @ 2020-06-09 08:44 e媒网络技术团队 阅读(206) 评论(0) 推荐(0)

摘要:代码: <!doctype html> <html> <head> <meta charset="utf-8"> <title>CSS Grid And Animate Show</title> <link rel="stylesheet" type="text/css" href="animate 阅读全文
posted @ 2020-06-08 16:42 e媒网络技术团队 阅读(224) 评论(0) 推荐(0)

摘要:代码: <!doctype html> <html> <head> <meta charset="utf-8"> <title>Animate Demo</title> <link rel="stylesheet" type="text/css" href="animate.min.css"> <s 阅读全文
posted @ 2020-06-04 11:37 e媒网络技术团队 阅读(279) 评论(0) 推荐(0)

摘要:Turtle库是Python语言中一个很流行的绘制图像的函数库,想象一个小乌龟,在一个横轴为x、纵轴为y的坐标系原点,(0,0)位置开始,它根据一组函数指令的控制,在这个平面坐标系中移动,从而在它爬行的路径上绘制了图形。 代码1: import turtle turtle.setup(500,300 阅读全文
posted @ 2020-06-03 11:07 e媒网络技术团队 阅读(251) 评论(0) 推荐(0)

摘要:代码: import requests from bs4 import BeautifulSoup r=requests.get("http://exesoft.gitee.io/webshow/spider.html") r.encoding="utf-8" soup=BeautifulSoup( 阅读全文
posted @ 2020-05-29 16:37 e媒网络技术团队 阅读(240) 评论(0) 推荐(0)

摘要:代码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 阅读全文
posted @ 2020-05-29 16:18 e媒网络技术团队 阅读(254) 评论(0) 推荐(0)

上一页 1 2 3 4 下一页