暑期学习日记33:登录页面

今天学习使用html+css制作了登录页面,与之前用js制作的验证码生成可以结合起来成为一个具有验证登录功能的页面。

代码如下:

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>登录窗口</title>
	<style>
		#logindiv{
			width: 300px;
			height: 200px;
			background: white;
			border-radius: 10px;
			margin: 100px auto;
			display: flex;
			flex-direction: column;
			overflow: hidden;
		}
		body{
			background: lightblue;
		}
		.flex1{
			flex: 1;
			text-align: center;
			line-height: 50px;
		}
		.login1{
			background: darkblue;
			color: white;
		}
		.flex1 input{
			font-size: 16px;
		}
		.flex1 button{
			font-size: 16px;
		}
	</style>
</head>
<body>
	<div id="logindiv">
		<div class="flex1 login1">登录窗口</div>
		<div class="flex1">用户名:<input type="text"></div>
		<div class="flex1">密&nbsp;&nbsp;&nbsp;&nbsp;码:<input type="password"></div>
		<div class="flex1"><button>登录</button></div>
	</div>
</body>
</html>

显示效果为:

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
在PyTorch中,模仿学习是指通过观察和模仿来学习任务。这种学习方法常用于强化学习中,其中智能体通过观察其他智能体的行为并模仿其行为来学习如何执行特定的任务。 PyTorch提供了丰富的张量类型用于存储和操作数据。根据引用,PyTorch支持多种数据类型,包括torch.float32、torch.float64、torch.float16、torch.uint8、torch.int8、torch.int16、torch.int32和torch.int64。这些数据类型具有不同的精度和表示范围,可以根据具体任务的需求选择适当的数据类型。 在PyTorch中,有两种常用的创建张量的方法,即使用torch.Tensor()和torch.tensor()。根据引用和引用,torch.Tensor()是一个类,而torch.tensor()是一个函数。torch.Tensor()会将数组转换为默认的tensor类型,而torch.tensor()可以根据传入的数据自动推断出tensor的类型。 要进行模仿学习,可以使用torch.tensor()创建张量来存储观察到的行为数据,并使用torch.Tensor()创建张量来存储模仿学习的结果。根据具体的任务和数据类型需求,选择适当的数据类型和创建方法来实现模仿学习。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* *3* [OUC暑期培训(深度学习)——第一周学习记录:深度学习和pytorch基础](https://blog.csdn.net/tm_operao/article/details/125758097)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 100%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值