学习 第3页
个人学习记录

Python作业:函数

公约数# 编写一个函数,该函数接收两个数字作为输入,并返回这两个数字的最大公约数。 def gcd(a, b): while b != 0: a, b = b, a % b return a num1 = int(input('请输入一个整数:')) num2 = i...
珊瑚海的头像-北梦の博客珊瑚海2年前
015614
盒子模型-北梦の博客

盒子模型

练习 练习1 效果图 代码 <!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <titl...
北梦的头像-北梦の博客SVIP北梦2年前
01548

Mysql_LibraryDB

drop database if exists LibraryDB; create database if not exists LibraryDB; use LibraryDB; -- 1. 读者表 (Readers Table) drop table if exists readers; create table readers ( -- 读者...
珊瑚海的头像-北梦の博客珊瑚海1年前
01531
Kubernetes搭建-北梦の博客

Kubernetes搭建

介绍 一、k8s核心组件 master:控制面 kube-api-server:整个集群大脑,负责接收用户任务清单,负责接收每个组件的周期询问,以及周期性的访问Etcd数据库 kube-scheduler:调度组件,负责决策用...
北梦的头像-北梦の博客SVIP北梦4个月前
01501

html 太极图

<!DOCTYPE html> <html> <head> <meta charset='UTF-8'> <title></title> </head> <style> body{background-color: darkgray;} .taiji{ margi...
珊瑚海的头像-北梦の博客珊瑚海2年前
014910

Python_练习_24.3.15

class Friend: def __init__(self): self.friend_li = {} # 实例方法 def welcome(self): print('欢迎来到好友管理系统') print('1.添加好友') print('2.删除好友') print('3.展示好友') print(...
北梦的头像-北梦の博客SVIP北梦1年前
014411

3.18mysql五种表代码

create database petstore; use petstore; create table account ( userid char(6) not null , fullname varchar(10) not null ,     password varchar(20) not null ,     sex char(2) not...
X.蔡徐坤的头像-北梦の博客X.蔡徐坤1年前
01429

Linux:DHCP

安装DHCP服务 # 使用yum安装DHCP [root@localhost ~]# yum install dhcp-server -y 正在更新 Subscription Management 软件仓库。 无法读取客户身份 本系统尚未在权利服务器中注册。可使用 subs...
北梦的头像-北梦の博客SVIP北梦1年前
01423

Python求两数的最大公约数

import math while True: num1 = int(input('请输入第一个整数')) num2 = int(input('请输入第二个整数')) if num1 > num2: while num2 != 0: num1, num2 = num2, num1 % num2 print(num1) e...
珊瑚海的头像-北梦の博客珊瑚海2年前
014112
CSS重难点-浮动与定位-北梦の博客

CSS重难点-浮动与定位

笔记 (1)display属性 设置标签在页面的显示方式,主要取值有: none 设置标签不在页面显示 block 设置标签以块状标签的形式在页面呈现 inline 设置标签以行内标签的形式在页面呈现 inline-block...
北梦的头像-北梦の博客SVIP北梦2年前
01412