【教学类-64-04】20240619彩色鱼骨图(一)6.5*1CM 6根棒子720种

news2024/7/6 20:18:22

背景需求:

幼儿益智早教玩具❗️鱼骨拼图 - 小红书在家也能自制的木棒鱼骨拼图,你也收藏起来试一试吧。 #母婴育儿 #新手爸妈 #玩具 #宝宝玩具怎么选 #早教 #早教玩具 #幼儿早教 #益智早教 #玩具 #宝宝早教 #益智拼图 #宝宝拼图 #玩不腻的益智玩具 #儿童益智桌游 #早教日常 #益智玩具 #玩具推荐icon-default.png?t=N7T8https://www.xiaohongshu.com/discovery/item/65f6e28e000000000d00dfb6?app_platform=android&ignoreEngage=true&app_version=8.40.0&share_from_user_hidden=true&xsec_source=app_share&type=video&xsec_token=CBdYq1lS_6_4JwSht55RRS6a0Us2oO80T58vVXzFTNLcI=&author_share=1&xhsshare=WeixinSession&shareRedId=ODszMTs4Nk82NzUyOTgwNjg3OTlHS0xC&apptime=1718805172&share_id=d7d2836a6bf8482fa9d9a16a71418e15

显示用六根彩色冰棍棒做排序,淘宝上有三款尺寸的彩色冰棍棒。

我先做一套6.5*1CM的鱼骨图

素材准备

代码展示

'''
冰棍棒六色720种 鱼骨图 红橙黄绿蓝紫(短款)6.5*1(长款) 11.5*1 大号(15*1.8) 
时间:2024年6月18日
作者:星火讯飞 阿夏

'''
from PIL import Image, ImageDraw
import os
from PIL import ImageFont

path=r'C:\Users\jg2yXRZ\OneDrive\桌面\鱼骨图'
new_path=path+r'\01jpg(6.5乘1)'
os.makedirs(new_path,exist_ok=True)

name='6.5乘1'

print('-----1、制作图卡--------')
# 六色所有排序方式 720种
import itertools
colors = ['red', 'orange', 'yellow', 'green', 'blue', 'purple']
# 使用itertools.permutations生成所有不重复排序方式
perms = list(itertools.permutations(colors))
# 打乱
# random.shuffle(perms)
# print(perms)
a=len(perms)
# 720个不重复的方法
# 720有几位数(个数)
num_digits = len(str(a))
print(num_digits)
# 720就是3位数

for a in range(len(perms)):
        # 打开图片
    image = Image.open(path+r'\鱼骨图.jpg')
    # 创建一个800*600的画布
    long=844
    wide=378
    s=6
    # 6根棒子

    canvas = Image.new('RGB', (long, wide), 'white')
    draw = ImageDraw.Draw(canvas)

    # 定义圆角矩形的参数

    # 棒子的圆心
    radius = 20
    # 左侧间距
    left = 220
    #  右侧间距
    right = 180
    # 棒子的间距
    padding = 30
    # 棒子的宽
    rect_width = float((long-left-right-padding*7)/6)
    print(rect_width)
    # 40
    # 棒子的高
    rect_height = float(rect_width*6.5)

    # 棒子的高度坐标
    padding2=float((wide- rect_height-20))
    # wide-padding*2



    # 计算每个圆角矩形的位置
    rect_positions = [
        (padding+left, padding2),
        (rect_width + padding * 2+left, padding2),
        (rect_width * 2 + padding * 3+left, padding2),
        (rect_width * 3 + padding * 4+left, padding2),
        (rect_width * 4 + padding * 5+left, padding2),
        (rect_width * 5 + padding * 6+left, padding2)
    ]


    colors = perms[a]
    #  绘制圆角矩形
    draw = ImageDraw.Draw(image)

    # 绘制圆角矩形
    for i, position in enumerate(rect_positions):
        x, y = position
        draw.rounded_rectangle([x, y, x + rect_width, y + rect_height], radius, fill=colors[i], outline='black', width=1)
    
    # 设置字体路径和大小
    font_path = r'C:\Windows\Fonts\AdobeHeitiStd-Regular.otf'
    font_size = 40

    # 加载字体
    font = ImageFont.truetype(font_path, font_size)

    # 在指定位置绘制文字
    draw.text((200, 30), f'彩色鱼骨图({name}CM)-{a+1:03d}', font=font, fill='black')
    
    # 保存图片
    image.save(new_path + fr'\{a+1:0{num_digits}d}.png')

print('-----2、制作大图--------')
# 六色所有排序方式 720种

# 使用itertools.permutations生成所有不重复排序方式


from PIL import Image, ImageDraw
import itertools

path = r'C:\Users\jg2yXRZ\OneDrive\桌面\鱼骨图'
new_path_jpg = path + r'\02jpg(6.5乘1)'
os.makedirs(new_path_jpg, exist_ok=True)

name = '6.5乘1'

for b in range(2):
    image = Image.open(path + r'\鱼骨图.jpg')
    long = 844
    wide = 378
    s = 6
    canvas = Image.new('RGB', (long, wide), 'white')
    draw = ImageDraw.Draw(canvas)

    radius = 20
    left = 220
    right = 180
    padding = 30
    rect_width = float((long - left - right - padding * 7) / 6)
    print(rect_width)
    rect_height = float(rect_width * 6.5)
    padding2 = float((wide - rect_height - 20))

    rect_positions = [
        (padding + left, padding2),
        (rect_width + padding * 2 + left, padding2),
        (rect_width * 2 + padding * 3 + left, padding2),
        (rect_width * 3 + padding * 4 + left, padding2),
        (rect_width * 4 + padding * 5 + left, padding2),
        (rect_width * 5 + padding * 6 + left, padding2)
    ]

    colors = perms[a]
    draw = ImageDraw.Draw(image)

    # 绘制圆角矩形
    for i, position in enumerate(rect_positions):
        x, y = position
        draw.rounded_rectangle([x, y, x + rect_width, y + rect_height], radius, fill='white', outline='black', width=1)

    # 设置字体路径和大小
    font_path = r'C:\Windows\Fonts\AdobeHeitiStd-Regular.otf'
    font_size = 40

    # 加载字体
    font = ImageFont.truetype(font_path, font_size)

    # 在指定位置绘制文字
    draw.text((150, 30), f'彩色鱼骨图({name}CM)-操作图{b+1}', font=font, fill='black')

    # 保存图片
    # image.save(new_path + fr'\{a+1:0{num_digits}d}.png')

    image.save(new_path_jpg + fr'\鱼骨图{name}_大图{b+1}.png')

print('-----3、图卡制作成图片格式----------')

import os
import random
from docx import Document
from docx.shared import Cm
from docx2pdf import convert
from PyPDF2 import PdfFileMerger


new_folder = path + r'\零时文件夹'
os.makedirs(new_folder, exist_ok=True)

image_files = [os.path.join(new_path, file) for file in os.listdir(new_path) if file.endswith('.png')]
# random.shuffle(image_files)

grouped_files = [image_files[i:i + 6] for i in range(0, len(image_files), 6)]

for group_index, group in enumerate(grouped_files):
    doc = Document(path + r'\鱼骨图题卡.docx')
    table = doc.tables[0]

    for cell_index, image_file in enumerate(group):
        cell = table.cell(int(cell_index / 2), cell_index % 2)
        cell_paragraph = cell.paragraphs[0]
        cell_paragraph.clear()
        run = cell_paragraph.add_run()
        run.add_picture(image_file, width=Cm(13.92), height=Cm(6.49))

    doc.save(os.path.join(new_folder, f'{group_index + 1:03d}.docx'))

pdf_output_path = path + fr'\\鱼骨图({name})题卡{len(perms)}张_固定顺序.pdf'
# pdf_output_path = path + fr'\\鱼骨图({name})题卡{len(perms)}张_随机顺序.pdf'

for docx_file in os.listdir(new_folder):
    if docx_file.endswith('.docx'):
        docx_path = os.path.join(new_folder, docx_file)
        convert(docx_path, docx_path.replace('.docx', '.pdf'))

merger = PdfFileMerger()
for pdf_file in os.listdir(new_folder):
    if pdf_file.endswith('.pdf'):
        pdf_path = os.path.join(new_folder, pdf_file)
        merger.append(pdf_path)

merger.write(pdf_output_path)
merger.close()

import shutil
shutil.rmtree(new_folder)

print('-----3、图卡制作成图片格式----------')

import os
import random
from docx import Document
from docx.shared import Cm
from docx2pdf import convert
from PyPDF2 import PdfFileMerger


new_folder = path + r'\零时文件夹'
os.makedirs(new_folder, exist_ok=True)

image_files = [os.path.join(new_path, file) for file in os.listdir(new_path_jpg) if file.endswith('.png')]
# random.shuffle(image_files)

grouped_files = [image_files[i:i + 2] for i in range(0, len(image_files), 2)]

for group_index, group in enumerate(grouped_files):
    doc = Document(path + r'\鱼骨图操作图.docx')
    table = doc.tables[0]

    for cell_index, image_file in enumerate(group):
        cell = table.cell(int(cell_index / 1), cell_index % 1)
        cell_paragraph = cell.paragraphs[0]
        cell_paragraph.clear()
        run = cell_paragraph.add_run()
        run.add_picture(image_file, width=Cm(21.62), height=Cm(9.7))

    doc.save(os.path.join(new_folder, f'{group_index + 1:03d}.docx'))

pdf_output_path = path + fr'\\鱼骨图({name})操作卡2张_固定顺序.pdf'
# pdf_output_path = path + fr'\\鱼骨图({name})操作卡2张_随机顺序.pdf'

for docx_file in os.listdir(new_folder):
    if docx_file.endswith('.docx'):
        docx_path = os.path.join(new_folder, docx_file)
        convert(docx_path, docx_path.replace('.docx', '.pdf'))

merger = PdfFileMerger()
for pdf_file in os.listdir(new_folder):
    if pdf_file.endswith('.pdf'):
        pdf_path = os.path.join(new_folder, pdf_file)
        merger.append(pdf_path)

merger.write(pdf_output_path)
merger.close()

import shutil
shutil.rmtree(new_folder)

第一步第二步生成结果(按照正序排列)

因为正序排列的顺序会比较相近,所以可以加上乱序

'''
冰棍棒六色720种 鱼骨图 红橙黄绿蓝紫(短款)6.5*1(长款) 11.5*1 大号(15*1.8) -乱序
时间:2024年6月18日
作者:星火讯飞 阿夏

'''
from PIL import Image, ImageDraw
import os,random
from PIL import ImageFont

path=r'C:\Users\jg2yXRZ\OneDrive\桌面\鱼骨图'
new_path=path+r'\01jpg(6.5乘1)'
os.makedirs(new_path,exist_ok=True)

name='6.5乘1'

print('-----1、制作图卡--------')
# 六色所有排序方式 720种
import itertools
colors = ['red', 'orange', 'yellow', 'green', 'blue', 'purple']
# 使用itertools.permutations生成所有不重复排序方式
perms = list(itertools.permutations(colors))
# 打乱
random.shuffle(perms)
print(perms)
a=len(perms)
# 720个不重复的方法
# 720有几位数(个数)
num_digits = len(str(a))
print(num_digits)
# 720就是3位数

for a in range(len(perms)):
        # 打开图片
    image = Image.open(path+r'\鱼骨图.jpg')
    # 创建一个800*600的画布
    long=844
    wide=378
    s=6
    # 6根棒子

    canvas = Image.new('RGB', (long, wide), 'white')
    draw = ImageDraw.Draw(canvas)

    # 定义圆角矩形的参数

    # 棒子的圆心
    radius = 20
    # 左侧间距
    left = 220
    #  右侧间距
    right = 180
    # 棒子的间距
    padding = 30
    # 棒子的宽
    rect_width = float((long-left-right-padding*7)/6)
    print(rect_width)
    # 40
    # 棒子的高
    rect_height = float(rect_width*6.5)

    # 棒子的高度坐标
    padding2=float((wide- rect_height-20))
    # wide-padding*2



    # 计算每个圆角矩形的位置
    rect_positions = [
        (padding+left, padding2),
        (rect_width + padding * 2+left, padding2),
        (rect_width * 2 + padding * 3+left, padding2),
        (rect_width * 3 + padding * 4+left, padding2),
        (rect_width * 4 + padding * 5+left, padding2),
        (rect_width * 5 + padding * 6+left, padding2)
    ]


    colors = perms[a]
    #  绘制圆角矩形
    draw = ImageDraw.Draw(image)

    # 绘制圆角矩形
    for i, position in enumerate(rect_positions):
        x, y = position
        draw.rounded_rectangle([x, y, x + rect_width, y + rect_height], radius, fill=colors[i], outline='black', width=1)
    
    # 设置字体路径和大小
    font_path = r'C:\Windows\Fonts\AdobeHeitiStd-Regular.otf'
    font_size = 40

    # 加载字体
    font = ImageFont.truetype(font_path, font_size)

    # 在指定位置绘制文字
    draw.text((200, 30), f'彩色鱼骨图({name}CM)-{a+1:03d}', font=font, fill='black')
    
    # 保存图片
    image.save(new_path + fr'\{a+1:0{num_digits}d}.png')

print('-----2、制作大图--------')
# 六色所有排序方式 720种

# 使用itertools.permutations生成所有不重复排序方式


from PIL import Image, ImageDraw
import itertools

path = r'C:\Users\jg2yXRZ\OneDrive\桌面\鱼骨图'
new_path_jpg = path + r'\02jpg(6.5乘1)'
os.makedirs(new_path_jpg, exist_ok=True)

name = '6.5乘1'

for b in range(2):
    image = Image.open(path + r'\鱼骨图.jpg')
    long = 844
    wide = 378
    s = 6
    canvas = Image.new('RGB', (long, wide), 'white')
    draw = ImageDraw.Draw(canvas)

    radius = 20
    left = 220
    right = 180
    padding = 30
    rect_width = float((long - left - right - padding * 7) / 6)
    print(rect_width)
    rect_height = float(rect_width * 6.5)
    padding2 = float((wide - rect_height - 20))

    rect_positions = [
        (padding + left, padding2),
        (rect_width + padding * 2 + left, padding2),
        (rect_width * 2 + padding * 3 + left, padding2),
        (rect_width * 3 + padding * 4 + left, padding2),
        (rect_width * 4 + padding * 5 + left, padding2),
        (rect_width * 5 + padding * 6 + left, padding2)
    ]

    colors = perms[a]
    draw = ImageDraw.Draw(image)

    # 绘制圆角矩形
    for i, position in enumerate(rect_positions):
        x, y = position
        draw.rounded_rectangle([x, y, x + rect_width, y + rect_height], radius, fill='white', outline='black', width=1)

    # 设置字体路径和大小
    font_path = r'C:\Windows\Fonts\AdobeHeitiStd-Regular.otf'
    font_size = 40

    # 加载字体
    font = ImageFont.truetype(font_path, font_size)

    # 在指定位置绘制文字
    draw.text((150, 30), f'彩色鱼骨图({name}CM)-操作图{b+1}', font=font, fill='black')

    # 保存图片
    # image.save(new_path + fr'\{a+1:0{num_digits}d}.png')

    image.save(new_path_jpg + fr'\鱼骨图{name}_大图{b+1}.png')

print('-----3、图卡制作成图片格式----------')

import os
import random
from docx import Document
from docx.shared import Cm
from docx2pdf import convert
from PyPDF2 import PdfFileMerger


new_folder = path + r'\零时文件夹'
os.makedirs(new_folder, exist_ok=True)

image_files = [os.path.join(new_path, file) for file in os.listdir(new_path) if file.endswith('.png')]
# random.shuffle(image_files)

grouped_files = [image_files[i:i + 6] for i in range(0, len(image_files), 6)]

for group_index, group in enumerate(grouped_files):
    doc = Document(path + r'\鱼骨图题卡.docx')
    table = doc.tables[0]

    for cell_index, image_file in enumerate(group):
        cell = table.cell(int(cell_index / 2), cell_index % 2)
        cell_paragraph = cell.paragraphs[0]
        cell_paragraph.clear()
        run = cell_paragraph.add_run()
        run.add_picture(image_file, width=Cm(13.92), height=Cm(6.49))

    doc.save(os.path.join(new_folder, f'{group_index + 1:03d}.docx'))

# pdf_output_path = path + fr'\\鱼骨图({name})题卡{len(perms)}张_固定顺序.pdf'
pdf_output_path = path + fr'\\鱼骨图({name})题卡{len(perms)}张_随机顺序.pdf'

for docx_file in os.listdir(new_folder):
    if docx_file.endswith('.docx'):
        docx_path = os.path.join(new_folder, docx_file)
        convert(docx_path, docx_path.replace('.docx', '.pdf'))

merger = PdfFileMerger()
for pdf_file in os.listdir(new_folder):
    if pdf_file.endswith('.pdf'):
        pdf_path = os.path.join(new_folder, pdf_file)
        merger.append(pdf_path)

merger.write(pdf_output_path)
merger.close()

import shutil
shutil.rmtree(new_folder)


print('-----4、图卡制作成操作图格式----------')

import os
import random
from docx import Document
from docx.shared import Cm
from docx2pdf import convert
from PyPDF2 import PdfFileMerger


new_folder = path + r'\零时文件夹'
os.makedirs(new_folder, exist_ok=True)

image_files = [os.path.join(new_path_jpg, file) for file in os.listdir(new_path_jpg) if file.endswith('.png')]
# random.shuffle(image_files)

grouped_files = [image_files[i:i + 2] for i in range(0, len(image_files), 2)]

for group_index, group in enumerate(grouped_files):
    doc = Document(path + r'\鱼骨图操作图.docx')
    table = doc.tables[0]

    for cell_index, image_file in enumerate(group):
        cell = table.cell(int(cell_index / 1), cell_index % 1)
        cell_paragraph = cell.paragraphs[0]
        cell_paragraph.clear()
        run = cell_paragraph.add_run()
        run.add_picture(image_file, width=Cm(21.62), height=Cm(9.7))

    doc.save(os.path.join(new_folder, f'{group_index + 1:03d}.docx'))

# pdf_output_path = path + fr'\\鱼骨图({name})操作卡2张_固定顺序.pdf'
pdf_output_path = path + fr'\\鱼骨图({name})操作卡2张_随机顺序.pdf'

for docx_file in os.listdir(new_folder):
    if docx_file.endswith('.docx'):
        docx_path = os.path.join(new_folder, docx_file)
        convert(docx_path, docx_path.replace('.docx', '.pdf'))

merger = PdfFileMerger()
for pdf_file in os.listdir(new_folder):
    if pdf_file.endswith('.pdf'):
        pdf_path = os.path.join(new_folder, pdf_file)
        merger.append(pdf_path)

merger.write(pdf_output_path)
merger.close()

import shutil
shutil.rmtree(new_folder)

以上就是6.5*1冰棍棒的教具,不过我还要把操作图打印出来看看,空白的棒子是不是正好6.5*1CM,与实体棒子一样长短大小。

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/1840066.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

第四篇:精通Docker构建:Dockerfile的艺术与策略

精通Docker构建:Dockerfile的艺术与策略 1. 开篇:探索Docker的革命 在探讨我们的主题之前,让我们先回顾一下Docker的概念。Docker是一个开源平台,用于自动化应用程序的部署、扩展和管理,这一切都是在轻量级的容器中进…

keil5显示内存和存储占用百分比进度条工具

简介 [Keil5_disp_size_bar] 以进度条百分比来显示keil编译后生成的固件对芯片的内存ram和存储flash的占用情况, 并生成各个源码文件对ram和flash的占比整合排序后的map信息的表格和饼图。 原理是使用C语言遍历当前目录找到keil工程和编译后生成的map文件 然后读取工程文件和m…

[16] 使用Opencv_CUDA 实现访问图像像素、直方图均衡化、几何变换

使用Opencv_CUDA 实现访问图像像素、直方图均衡化、几何变换 访问图像的各个像素强度直方图的计算与均衡几何变换&#xff1a;缩放、平移与旋转 1. 访问图像的各个像素强度 #include <iostream> #include "opencv2/opencv.hpp"int main() {cv::Mat h_img1 …

调取Windows系统虚拟键盘

目录 一 设计原型 二 后台源码 一 设计原型 二 后台源码 using System.Diagnostics;namespace 调取Windows虚拟键盘 {public partial class Form1 : Form{public Form1(){InitializeComponent();}private void richTextBox1_DoubleClick(object sender, EventArgs e){Proces…

对于补码的个人理解

1. 十进制的取模计算 现在我想要使另一个数加上2后用8取模后也等于1&#xff0c;这个数可以是哪些&#xff1f; 这个问题比较简单&#xff0c;只需要-1加上8的倍数即可 例如&#xff1a; 如果我们想要得到距离-1这个负数最近的一个正数7&#xff0c;直接使用-18即可。反过来想…

JavaSE 面向对象程序设计高级 方法引用 2024详解

在编程中&#xff0c;方法引用&#xff08;Method Reference&#xff09;是一种技术&#xff0c;它让你能够直接引用一个现有的函数或方法&#xff0c;而无需通过对象实例来调用。这种方法在函数式编程和高阶函数中非常有用&#xff0c;因为它提供了简洁的方式来传递函数行为&a…

晋升受阻或遭受不公:你想到这条路了吗?

晋升受阻或遭受不公&#xff1a;你想到这条路了吗&#xff1f; 当你在职场上遇到晋升受阻或者感觉受到不公平对待的时候&#xff0c;你一般选择怎么处理&#xff1f;是逆来顺受、忍气吞声、还是听命安排与据理力争&#xff1f; 其实并非无路可走&#xff0c;这时候&#xff0c;…

在二维空间中用椭圆表示不确定性

在二维空间中用椭圆表示不确定性 flyfish import numpy as np import matplotlib.pyplot as plt from matplotlib.patches import Ellipse# 生成示例数据 np.random.seed(0) data np.random.multivariate_normal([0, 0], [[4, 2], [2, 3]], size500)# 计算均值和协方差矩阵 …

使用node把任意网站封装为可执行文件

直接上步骤&#xff1a; 1. node.js 环境准备 下载地址 那个版本都行&#xff0c;下一步->下一步 安装即可 2. windows 系统下&#xff0c; 快捷键 winr ->输入 cmd -> 回车 3. 执行第一个命令&#xff0c;安装 nativefier 等一段时间 npm install nativefier -g 4…

GitHub爆赞!最适合新手入门的教程——笨方法学Python 3

“Python 是一门既容易上手又强大的编程语言。”这句话本身并无大碍&#xff0c;但需要注意的是&#xff0c;正因为它既好学又好用&#xff0c;所以很多 Python 程序员只用到了其强大功能的一小部分。 今天给小伙伴们分享的这份手册以习题的方式引导读者一步一步学习编程&…

VMware 虚拟机共享宿主机文件夹

一、背景 在虚拟机中&#xff0c;需要写文件到宿主机的文件系统中 宿主机的文件共享给虚拟机使用 这些场景就涉及到VM的虚拟机怎么访问宿主机的磁盘文件夹 二、软件背景 宿主机&#xff1a;window机器&#xff0c;本文是win7 虚拟软件&#xff1a;VMware12.5.6&#xff0…

js文件导出功能

效果图&#xff1a; 代码示例&#xff1a; <!DOCTYPE html> <html> <head lang"en"><meta charset"UTF-8"><title>html 表格导出道</title><script src"js/jquery-3.6.3.js"></script><st…

Office--加载宏-CS上线

免责声明:本文仅做技术交流与学习... 目录 关于宏上线的格式: 操作流程: 其他office文本的上线格式一样: 关于宏上线的格式: doc宏病毒: 1-生成格式为dotm 只要点启用宏就上线 2-生成格式为()word 97-2003 .doc) 被杀 操作流…

Qt入门小项目 | 实现一个图片查看器

文章目录 一、实现一个图片查看软件 一、实现一个图片查看软件 需要实现的功能&#xff1a; 打开目录选择图片显示图片的名字显示图片 在以上功能的基础上进行优化&#xff0c;需要解决如下问题&#xff1a; 如何记住上次打开的路径&#xff1f; 将路径保存到配置文件中&#x…

LabVIEW在SpaceX的应用

结合真实的资料介绍LabVIEW在SpaceX的应用&#xff0c;涵盖自动化测试系统、数据采集与监控、可视化与分析、模块化设计与扩展&#xff0c;以及效率与可靠性的提高。 ​ 自动化测试系统 LabVIEW在SpaceX的自动化测试系统中发挥了关键作用。自动化测试是确保SpaceX火箭及其子系…

Android焦点机制结合WMS

文章前提&#xff1a; 了解WMS基本作用了解window的概念&#xff0c;phoneWindow&#xff0c;rootViewImpl了解view的事件分发 开始&#xff1a; 讲三件事情&#xff1a; window的创建&#xff0c;更新焦点的更新事件的分发 Window的创建&#xff0c;更新&#xff1a; wi…

IT入门知识第二部分《编程语言》(2/10)

目录 IT入门知识博客文章大纲第二部分《编程语言》 1.引言 2.编程语言概述 2.1 编程语言的发展历程 2.2 编程范式 3.常见的编程语言 3.1 Python 3.2 Java 3.3 C 3.4 JavaScript 3.5 Ruby 4.编程语言的选择 4.1 技术需求 4.2 团队技能 4.3 社区和生态系统 4.4 可…

经验分享,CRC(循环冗余校验)在线计算

这里分享一个好用的在线计算CRC的网站。 网址&#xff1a;http://www.ip33.com/crc.html 截图&#xff1a;

Linux - 进程

一、什么是进程 首先&#xff0c;Linux是一个多用户多进程的操作系统&#xff0c;系统上可以同时运行多个进程。 进程的产生&#xff1a;①是在执行程序或者命令时产生的&#xff1b;②定时任务进程 进程的类型&#xff1a;前台进程/后台进程 前台进程&#xff1a;一个终端…

之所以选择天津工业大学,因为它是双一流、报考难度适宜,性价比高!天津工业大学计算机考研考情分析!

天津工业大学&#xff08;Tiangong University&#xff09;&#xff0c;简称“天工大”&#xff0c;位于天津市&#xff0c;是教育部与天津市共建高校、国家国防科技工业局和天津市共建的天津市重点建设高校、国家“双一流”建设高校、天津市高水平特色大学建设高校、中国研究生…