Vue前端练习

此练习项目只涉及前端,主要是vue和ElementUI框架的使用。(ElementUI官网:Element - The world's most popular Vue UI framework)

一、环境准备

  1. 安装idea

  2. 安装Node.js 一键式安装(不需要做任何配置) npm -v(也可用node多版本管理工具nvm进行管理和下载)

  3. 修改npm镜像源 npm config set registry https://registry.npmmirror.com

  4. 获取镜像源地址 npm config get registry

  5. 安装VUE Cli脚手架 npm install -g @vue/cli

  6. 验证Vue Cli安装是否成功 vue -V

     7.创建Vue Cli工程项目

        创建一个Vue-Workspace文件夹,用来存放vue项目。在此文件内,打开命令行。

      使用 vue create 命令即可创建VUE CLI工程,命令格式是:

vue create 工程名称

配置工作及如何在idea中打开,请参考以下教程 :

Vue-Cli(脚手架)安装及如何创建Vue-Cli项目-保姆级别教程,手把手教会你-CSDN博客

      8.工程结构

      8.1 App.vue:此vue文件是访问工程根路径时自动显示的组件(* .vue)

      8.2 views文件夹:以后开发的所有的页面(*.vue)基本上都是保存在此文件夹下

      8.3 router/index.js:路由配置文件,在里面配置客户端请求xxx地址时由xxx.vue页面显示

      8.4 main.js:工程的主JS文件,引入各个框架的代码写在此文件下

      8.5 package.json:修改端口号,修改框架版本在此配置文件中操作

      8.6 public文件夹:图片资源文件保存在此文件夹下

     9.引入ElementUI框架

       9.1终止vue启动,并执行npm install --save element-ui

       9.2在main.js中引入

             import ElementUI from 'element-ui';

             import 'element-ui/lib/theme-chalk/index.css';

             Vue.use(ElementUI);

main.js代码:

import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')

二、具体实现及代码

项目结构如下:

index.js

import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView,
    children:[
      {
        path: '/reg',
        component: ()=>import('../views/RegView.vue')
      },
      {
        path: '/login',
        component: ()=>import('../views/LoginView.vue')
      },
      {
        path: '/index',
        component: ()=>import('../views/IndexView.vue')
      },
      {
        path: '/detail',
        component: ()=>import('../views/DetailView.vue')
      }
    ]
  }

]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router

App.vue

<template>
    <div id="app">
        <router-view/>
    </div>
</template>

<style>
body {
    background-color: rgb(241, 242, 243);
}

</style>

HomeView.vue

<template>
    <div class="home">
        <el-container>
            <!--页面头部-->
            <el-header height="80px" style="background-color: white">
                <div style="width: 1200px;margin: 0 auto">
                    <el-row :gutter="20">
                        <el-col :span="6">
                            <img src="/imgs/icon.png" width="200">
                        </el-col>
                        <el-col :span="10">
                            <el-menu mode="horizontal" active-text-color="orange">
                                <el-menu-item index="1">首页</el-menu-item>
                                <el-menu-item index="2">食谱</el-menu-item>
                                <el-menu-item index="3">视频</el-menu-item>
                                <el-menu-item index="4">资讯</el-menu-item>
                            </el-menu>
                            <div class="line"></div>
                        </el-col>
                        <el-col :span="6">
                            <el-input placeholder="请输入搜索的关键字" style="position: relative;top: 20px">
                                <el-button slot="append" icon="el-icon-search"></el-button>
                            </el-input>
                        </el-col>
                        <el-col :span="2">
                            <el-popover
                                    placement="top-start"
                                    title="欢迎来到烘焙坊!"
                                    width="200"
                                    trigger="hover">
                                <i slot="reference" class="el-icon-user"
                                   style="font-size: 30px;position: relative;top: 20px"></i>
                                <el-button type="info" @click="reg()">注册</el-button>
                                <el-button type="warning" @click="login()">登录</el-button>
                            </el-popover>
                        </el-col>
                    </el-row>
                </div>
            </el-header>
            <el-main id="el-main">
                <router-view/>
            </el-main>
            <!--页面页脚-->
            <el-footer style="height:280px;background-color: black;padding: 50px">
                <div style="width: 1200px;color:#666;text-align:center;margin: 0 auto">
                    <el-row>
                        <el-col :span="8">
                            <img src="/imgs/icon.png" width="200">
                            <p>教程灵感就看烘焙坊</p>
                            <p>烘焙行业网络社区平台</p>
                            <p>全国百城上千个职位等你来</p>
                        </el-col>
                        <el-col :span="8">
                            <el-row id="footer_center">
                                <el-col :span="8">
                                    <h3>关于我们</h3>
                                    <p>烘焙学院</p>
                                    <p>烘焙食谱</p>
                                    <p>分类信息</p>
                                    <p>招聘信息</p>
                                    <p>社区交流</p>
                                </el-col>
                                <el-col :span="8">
                                    <h3>服务与支持</h3>
                                    <p>联系我们</p>
                                    <p>广告投放</p>
                                    <p>用户协议</p>
                                    <p>友情链接</p>
                                    <p>在线反馈</p>
                                    <p>我发投稿</p>
                                </el-col>
                                <el-col :span="8">
                                    <h3>底部导航</h3>
                                    <p>Archiver</p>
                                    <p>手机版</p>
                                    <p>小黑屋</p>
                                </el-col>
                            </el-row>
                        </el-col>
                        <el-col :span="8">
                            <p style="font-size: 60px;margin: 0"><span style="color: orange">烘焙</span>坊</p>
                            <p>烘焙行业网络社区平台</p>
                        </el-col>
                    </el-row>
                </div>
            </el-footer>
        </el-container>
    </div>
</template>

<script>

export default {
    name: 'HomeView',
    methods: {
        reg() {
            /*location.href='/reg'   /!*这种跳转方法是页面整体刷新,影响页面的加载速度*!/*/
            /*脚手架开发中使用这种跳转方式*/
            if (this.$route.path !== '/reg') {
                this.$router.push('/reg');
            }
        },
        login() {
            /*location.href='/login'*/
            if (this.$route.path !== '/login') {
                this.$router.push('/login');
            }
        }
    },
}
</script>

<style>
#footer_center p {
    margin: 0;
}

#footer_center h3 {
    color: white;
}

#el-main {
    margin: 0;
    padding: 0;
}
</style>

IndexView.vue

<template>
    <div style="width: 1200px;margin: 10px auto">
        <!-- 轮播图 -->
        <el-carousel height="350px">
            <el-carousel-item>
                <img src="/imgs/banner1.jpg">
            </el-carousel-item>
            <el-carousel-item>
                <img src="/imgs/banner2.jpg">
            </el-carousel-item>
            <el-carousel-item>
                <img src="/imgs/banner3.jpg">
            </el-carousel-item>
        </el-carousel>

        <!-- 烘焙食谱导航条-->
        <el-row style="background-color: white">
            <el-col :span="3">
                <p style="font-size: 28px;margin: 15px">烘焙食谱</p>
            </el-col>
            <el-col :span="21">
                <el-menu mode="horizontal" active-text-color="orange" default-active="1">
                    <el-menu-item index="1">
                        全部
                    </el-menu-item>
                    <el-menu-item index="2">
                        面包
                    </el-menu-item>
                    <el-menu-item index="3">
                        零食
                    </el-menu-item>
                    <el-menu-item index="4">
                        家常菜
                    </el-menu-item>
                </el-menu>
            </el-col>
        </el-row>

        <!--烘焙食谱列表-->
        <el-row :gutter="20">
            <el-col :span="6" v-for="item in recipeArr" style="margin: 10px 0">
                <el-card>
                    <a href="javascript:void(0)">
                        <img :src="item.imgUrl" width="100%" height="145">
                        <p style="height: 40px;">{{ item.title }}</p>
                    </a>
                    <el-row>
                        <el-col :span="4">
                            <el-avatar :src="item.userImgUrl" size="small"></el-avatar>
                        </el-col>
                        <el-col :span="10">
                            {{ item.nickName }}
                        </el-col>
                        <el-col :span="10">
                            <span style="float: right;font-size: 12px;color: #666">{{ item.categoryName }}</span>
                        </el-col>
                    </el-row>
                </el-card>
            </el-col>
        </el-row>

        <!--点击加载更多-->
        <div style="text-align: center">
            <el-button>点击加载更多</el-button>
        </div>

        <!-- 烘焙视频导航条-->
        <el-row style="background-color: white">
            <el-col :span="3">
                <p style="font-size: 28px;margin: 15px">烘焙视频</p>
            </el-col>
            <el-col :span="21">
                <el-menu mode="horizontal" active-text-color="orange" default-active="1">
                    <el-menu-item index="1">
                        面包教学
                    </el-menu-item>
                    <el-menu-item index="2">
                        零食鉴赏
                    </el-menu-item>
                    <el-menu-item index="3">
                        家常菜教程
                    </el-menu-item>
                </el-menu>
            </el-col>
        </el-row>

        <!--烘焙视频列表-->
        <el-row :gutter="20">
            <el-col :span="6" v-for="item in recipeArr" style="margin: 10px 0">
                <el-card>
                    <a href="javascript:void(0)">
                        <img :src="item.imgUrl" width="100%" height="145">
                        <p style="height: 40px;">{{ item.title }}</p>
                    </a>
                    <el-row>
                        <el-col :span="4">
                            <el-avatar :src="item.userImgUrl" size="small"></el-avatar>
                        </el-col>
                        <el-col :span="10">
                            {{ item.nickName }}
                        </el-col>
                        <el-col :span="10">
                            <span style="float: right;font-size: 12px;color: #666">{{ item.categoryName }}</span>
                        </el-col>
                    </el-row>
                </el-card>
            </el-col>
        </el-row>

        <!--点击加载更多-->
        <div style="text-align: center">
            <el-button>点击加载更多视频</el-button>
        </div>

        <!-- 行业资讯导航条-->
        <el-row style="background-color: white">
            <el-col :span="3">
                <p style="font-size: 28px;margin: 15px">行业资讯</p>
            </el-col>
            <el-col :span="21">
                <el-menu mode="horizontal" active-text-color="orange" default-active="1">
                    <el-menu-item index="1">
                        全部
                    </el-menu-item>
                    <el-menu-item index="2">
                        美食资讯
                    </el-menu-item>
                    <el-menu-item index="3">
                        店家资讯
                    </el-menu-item>
                </el-menu>
            </el-col>
        </el-row>

        <!--行业资讯列表-->
        <el-row :gutter="20">
            <el-col :span="6" v-for="item in recipeArr" style="margin: 10px 0">
                <el-card>
                    <a href="javascript:void(0)">
                        <img :src="item.imgUrl" width="100%" height="145">
                        <p style="height: 40px;">{{ item.title }}</p>
                    </a>
                    <el-row>
                        <el-col :span="4">
                            <el-avatar :src="item.userImgUrl" size="small"></el-avatar>
                        </el-col>
                        <el-col :span="10">
                            {{ item.nickName }}
                        </el-col>
                        <el-col :span="10">
                            <span style="float: right;font-size: 12px;color: #666">{{ item.categoryName }}</span>
                        </el-col>
                    </el-row>
                </el-card>
            </el-col>
        </el-row>

        <!--点击加载更多-->
        <div style="text-align: center">
            <el-button>点击加载更多资讯</el-button>
        </div>



    </div>
</template>

<script>
export default {
    name: "IndexView",
    data() {
        return {
            recipeArr: [
                {
                    "id": 27,
                    "title": "家常面包",
                    "imgUrl": "imgs/a.jpg",
                    "categoryName": "面包",
                    "nickName": "汤姆",
                    "userImgUrl": "imgs/head.jpg"
                },
                {
                    "id": 18,
                    "title": "爆浆抹茶甜甜圈面包,自带幸福感的小甜甜",
                    "imgUrl": "imgs/b.jpg",
                    "categoryName": "家常菜",
                    "nickName": "汤姆",
                    "userImgUrl": "imgs/head.jpg"
                },
                {
                    "id": 17,
                    "title": "心形火龙果椰蓉面包,任谁都抗拒不了",
                    "imgUrl": "imgs/c.jpg",
                    "categoryName": "小食",
                    "nickName": "汤姆",
                    "userImgUrl": "imgs/head.jpg"
                },
                {
                    "id": 16,
                    "title": "蔓越莓绿豆糕,味道还不错值得一试!",
                    "imgUrl": "imgs/d.jpg",
                    "categoryName": "面包",
                    "nickName": "汤姆",
                    "userImgUrl": "imgs/head.jpg"
                },
            ]
        }
    }
}
</script>

<style scoped>
a {
    text-decoration: none;
    color: #11192d;
}

</style>

LoginView.vue

<template>
    <div id="main_div">
        <el-card style="width: 500px;height: 300px;margin: 50px auto">
            <el-form label-width="80px" style="margin-top: 50px;width: 430px">
                <el-form-item label="用户名">
                    <el-input placeholder="请输入用户名" v-model="user.username"></el-input>
                </el-form-item>
                <el-form-item label="密码">
                    <el-input type="password" placeholder="请输入密码" v-model="user.password"></el-input>
                </el-form-item>

                <el-form-item style="text-align: center;">
                    <el-button type="primary" style="position: relative;right: 30px">登录</el-button>
                </el-form-item>
            </el-form>
        </el-card>
    </div>
</template>

<script>
export default {
    name: "LoginView",
    data() {
        return {
            user: {
                username: "",
                password: ""
            }
        };
    }
}
</script>

<style scoped>

#main_div {
    height: 500px;
    background-image: url('/public/imgs/loginbg.gif');
    background-position: center; /*设置背景图居中*/
    background-size: cover; /*设置为封面*/
    overflow: hidden; /*解决粘连问题*/
}

</style>

RegView.vue

<template>
    <div style="width: 1200px;margin: 20px auto">
        <el-row :gutter="20">
            <el-col :span="12">
                <el-card>
                    <img src="/imgs/reg.png" width="100%">
                </el-card>
            </el-col>
            <el-col :span="12">
                <el-form  label-width="80px" style="margin-top: 50px">
                    <el-form-item>
                        <h1 style="font-size: 25px">立即注册 <a href="/login"
                                        style="font-size: 15px;color:#0aa1ed;text-decoration:none;float: right">已有账号?现在登录</a>
                        </h1>
                    </el-form-item>

                    <el-form-item label="用户名">
                        <el-input placeholder="请输入用户名"></el-input>
                    </el-form-item>
                    <el-form-item label="密码">
                        <el-input type="password" placeholder="请输入密码"></el-input>
                    </el-form-item>
                    <el-form-item label="昵称">
                        <el-input placeholder="请输入昵称"></el-input>
                    </el-form-item>

                    <el-form-item style="text-align: center;">
                        <el-button type="primary">注册</el-button>
                    </el-form-item>
                </el-form>
            </el-col>
        </el-row>
    </div>
</template>

<script>
export default {
    name: "RegView"
}
</script>

<style scoped>

</style>

DetailView.vue

<template>
    <el-row gutter="20">
        <el-col span="18">
            <el-card>
                <h2 style="color: orange;text-align: center">
                    枣泥花式面包,好吃到爆!
                </h2>
                <p style="font-size: 12px;color: #666;text-align: center">
                    作者:汤姆 | 发布时间:2023/5/26 11:12:30 | 阅读次数:1
                </p>
                <el-divider></el-divider>
                <el-card style="font-size: 12px">
                    <b style="color: #409EFF">摘要:</b>
                    之前做了枣泥馅,配上花式面包,好吃到爆。 枣泥花式面包的用料 肉松面包面团
                </el-card>
                <p style="height: 500px">文章内容</p>

            </el-card>
            <!--评论相关开始-->
            <el-card>
                <p>发一条友善的评论</p>
                <el-divider></el-divider>
                <el-row gutter="20">
                    <el-col span="20">
                        <el-input type="textarea" placeholder="说点儿啥..."></el-input>
                    </el-col>
                    <el-col span="2">
                        <el-button>发布</el-button>
                    </el-col>
                </el-row>
                <!--评论列表开始-->
                <el-row style="margin: 5px 0">
                    <el-col span="2">
                        <el-avatar src="imgs/head.jpg"></el-avatar>
                    </el-col>
                    <el-col span="20">
                        <span style="color: orange;font-weight: bold">汤姆:</span>
                        <p style="margin:5px 0">开起来很好吃!</p>
                        <span style="color: #666;font-size: 12px">2023/5/26 15:52:30</span>
                    </el-col>
                </el-row>
                <el-row style="margin: 5px 0">
                    <el-col span="2">
                        <el-avatar src="imgs/head.jpg"></el-avatar>
                    </el-col>
                    <el-col span="20">
                        <span style="color: orange;font-weight: bold">汤姆:</span>
                        <p style="margin:5px 0">开起来很好吃!</p>
                        <span style="color: #666;font-size: 12px">2023/5/26 15:52:30</span>
                    </el-col>
                </el-row>
                <el-row style="margin: 5px 0">
                    <el-col span="2">
                        <el-avatar src="imgs/head.jpg"></el-avatar>
                    </el-col>
                    <el-col span="20">
                        <span style="color: orange;font-weight: bold">汤姆:</span>
                        <p style="margin:5px 0">开起来很好吃!</p>
                        <span style="color: #666;font-size: 12px">2023/5/26 15:52:30</span>
                    </el-col>
                </el-row>
                <!--评论列表结束-->
            </el-card>
            <!--评论相关结束-->

        </el-col>
        <el-col span="6">
            <el-card class="right-card" style="height: 240px;text-align: center;">
                <div style="background-image: url('/imgs/avarbg.jpg');
                                    height: 90px"></div>
                <div style="position: relative;top: -45px">
                    <img src="imgs/head.jpg"
                         style="border-radius: 90px;border: 5px solid white;
                                        width: 90px;height: 90px">
                    <p style="font-size: 20px;margin: 0;
                                      font-weight: bold">汤姆</p>
                    <i class="el-icon-edit">本文作者</i><br>
                    <i class="el-icon-time">2023/5/26 16:43:30</i>
                </div>

            </el-card>
            <!--作者其它文章开始-->
            <el-card style="margin:10px 0">
                <h3>作者其它文章</h3>
                <el-divider></el-divider>
                <!--文章列表开始-->
                <el-row gutter="10" v-for="item in 4">
                    <el-col span="10">
                        <img src="imgs/a.jpg" width="100%" height="70px">
                    </el-col>
                    <el-col span="14">
                        <p style="margin: 0;height: 50px">枣泥面包好吃到爆!</p>
                        <i class="el-icon-time" style="color: #666">2023/6/30</i>
                    </el-col>
                </el-row>
                <!--文章列表结束-->
            </el-card>

            <!--作者其它文章结束-->
            <!--热门文章开始-->
            <el-card style="margin:10px 0">
                <h3>热门文章</h3>
                <el-divider></el-divider>
                <!--文章列表开始-->
                <el-row gutter="10" v-for="item in 4">
                    <el-col span="10">
                        <img src="imgs/a.jpg" width="100%" height="70px">
                    </el-col>
                    <el-col span="14">
                        <p style="margin: 0;height: 50px">枣泥面包好吃到爆!</p>
                        <i class="el-icon-time" style="color: #666">2023/6/30</i>
                    </el-col>
                </el-row>
                <!--文章列表结束-->
            </el-card>

            <!--热门文章结束-->
        </el-col>
    </el-row>

</template>

<script>
export default {
    name: "DetailView"
}
</script>

<style scoped>

</style>

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

如若内容造成侵权/违法违规/事实不符,请联系我们进行投诉反馈qq邮箱809451989@qq.com,一经查实,立即删除!

相关文章

C语言 | Leetcode C语言题解之第198题打家劫舍

题目&#xff1a; 题解&#xff1a; int rob(int* nums, int numsSize){// dp0: 不偷这个屋子能窃到的最高金额int dp0 0;// dp1: 偷这间屋子能窃到的最高金额int dp1 nums[0];for (int i 1; i < numsSize; i) {int dp0new fmax(dp0, dp1);int dp1new dp0 nums[i];dp…

前端知识点

HTML、CSS 相关 1、 BFC 1、BFC 是什么&#xff1f; BFC&#xff08;Block Formatting Context&#xff09; 格式化上下文&#xff1b; 指一个独立的渲染区域&#xff0c;或者说是一个隔离的独立容器&#xff1b;可以理解为一个独立的封闭空间。无论如何不会影响到它的外面 …

day09了 加油

浅拷贝 指向同一个地址空间 右边不可取地址 左边一定是到了具体的位置 右值引用std&#xff1a;&#xff1a; move 相信大家默认构造函数都没有问题&#xff0c;所以就不贴例子了 浅拷贝构造函数 只负责复制地址&#xff0c;而不是真的把完整的内存给它 #include <iostre…

【MySQL备份】Percona XtraBackup基础篇

目录 1.关于Percona XtraBackup 2. Percona XtraBackup有哪些特点&#xff1f; 3.安装Percona XtraBackup 3.1.环境信息 3.2.安装步骤 4. xtrabackup内部流程图 5.Percona XtraBackup基础语法 5.1.全量备份 5.2.增量备份 5.2.1.基于全量备份的增量备份 5.2.2.基于前…

超越所有SOTA达11%!媲美全监督方法 | UC伯克利开源UnSAM

文章链接&#xff1a;https://arxiv.org/pdf/2406.20081 github链接&#xff1a;https://github.com/frank-xwang/UnSAM SAM 代表了计算机视觉领域&#xff0c;特别是图像分割领域的重大进步。对于需要详细分析和理解复杂视觉场景(如自动驾驶、医学成像和环境监控)的应用特别有…

深入解读OkHttp3中的Request5

OkHttp 是由 Square 开发的一个高效的 HTTP 客户端库&#xff0c;广泛应用于 Android 开发中。作为资深安卓开发工程师&#xff0c;我们经常需要与网络通信打交道&#xff0c;而 OkHttp 提供了一个简洁而强大的 API 来处理这些通信。在这篇文章中&#xff0c;我们将深入探讨 Ok…

python自动化运维--DNS处理模块dnspython

1.dnspython介绍 dnspython是Pyhton实现的一个DNS工具包&#xff0c;他几乎支持所有的记录类型&#xff0c;可以用于查询、传输并动态更新ZONE信息&#xff0c;同事支持TSIG&#xff08;事物签名&#xff09;验证消息和EDNS0&#xff08;扩展DNS&#xff09;。在系统管理方面&a…

EVE-NG网络仿真平台搭建

现在目前实验都是使用华为的Ensp模拟器&#xff0c;但是有时候一些功能模拟器无法实现&#xff0c;要不就是使用真机进行实验&#xff0c;第二个就是换个支持相关命令的模拟器了&#xff0c;今天来简单学习下EVE-NG这个模拟器。 一、EVE-NG简介 EVE-NG&#xff08;Emulated Vir…

【深度学习】注意力机制

https://blog.csdn.net/weixin_43334693/article/details/130189238 https://blog.csdn.net/weixin_47936614/article/details/130466448 https://blog.csdn.net/qq_51320133/article/details/138305880 注意力机制&#xff1a;在处理信息的时候&#xff0c;会将注意力放在需要…

HarmonyOS开发实战:UDP通讯示例规范

1. UDP简介 UDP协议是传输层协议的一种&#xff0c;它不需要建立连接&#xff0c;是不可靠、无序的&#xff0c;相对于TCP协议报文更简单&#xff0c;在特定场景下有更高的数据传输效率&#xff0c;在现代的网络通讯中有广泛的应用&#xff0c;以最新的HTTP/3为例&#xff0c;…

2024年6月29日 (周六) 叶子游戏新闻

老板键工具来唤去: 它可以为常用程序自定义快捷键&#xff0c;实现一键唤起、一键隐藏的 Windows 工具&#xff0c;并且支持窗口动态绑定快捷键&#xff08;无需设置自动实现&#xff09;。 喜马拉雅下载工具: 字面意思 《星刃》性感女主私密部位细节逼真 让玩家感到惊讶《星刃…

探索NVIDIA A100 显卡 如何手搓A100显卡

NVIDIA A100 显卡&#xff08;GPU&#xff09;是基于NVIDIA的Ampere架构设计的高性能计算和人工智能任务的处理器。 A100显卡主要由以下几种关键芯片和组件组成&#xff1a; 1. GPU芯片 NVIDIA GA100 GPU&#xff1a; 核心组件&#xff0c;是整个显卡的核心处理单元。GA100芯…

Ubuntu24.04 Isaacgym的安装

教程1 教程2 教程3 1.下载压缩包 link 2. 解压 tar -xvf IsaacGym_Preview_4_Package.tar.gz3. 从源码安装 Ubuntu24.04还需首先进入虚拟环境 python -m venv myenv # 创建虚拟环境&#xff0c;已有可跳过 source myenv/bin/activate # 激活虚拟环境python编译 cd isaa…

Python容器 之 字符串--字符串的常用操作方法

1.字符串查找方法 find() 说明&#xff1a;被查找字符是否存在于当前字符串中。 格式&#xff1a;字符串.find(被查找字符) 结果&#xff1a;如果存在则返回第一次出现 被查找字符位置的下标 如果不存在则返回 -1 需求&#xff1a; 1. 现有字符串数据: 我是中国人 2. 请设计程序…

Python 作业题1 (猜数字)

题目 你要根据线索猜出一个三位数。游戏会根据你的猜测给出以下提示之一&#xff1a;如果你猜对一位数字但数字位置不对&#xff0c;则会提示“Pico”&#xff1b;如果你同时猜对了一位数字及其位置&#xff0c;则会提示“Fermi”&#xff1b;如果你猜测的数字及其位置都不对&…

网络爬虫基础知识

文章目录 网络爬虫基础知识爬虫的定义爬虫的工作流程常用技术和工具爬虫的应用1. 抓取天气信息2. 抓取新闻标题3. 抓取股票价格4. 抓取商品价格5. 抓取博客文章标题 网络爬虫基础知识 爬虫的定义 网络爬虫&#xff08;Web Crawler 或 Spider&#xff09;是一种自动化程序&…

算法训练营day24--93.复原IP地址 +78.子集 +90.子集II

一、93.复原IP地址 题目链接&#xff1a;https://leetcode.cn/problems/restore-ip-addresses/ 文章讲解&#xff1a;https://programmercarl.com/0093.%E5%A4%8D%E5%8E%9FIP%E5%9C%B0%E5%9D%80.html 视频讲解&#xff1a;https://www.bilibili.com/video/BV1fA4y1o715 1.1 初…

MyBatis入门案例

实施前的准备工作&#xff1a; 1.准备数据库表2.创建一个新的springboot工程&#xff0c;选择引入对应的起步依赖&#xff08;mybatis、mysql驱动、lombok&#xff09;3.在application.properties文件中引入数据库连接信息4.创建对应的实体类Emp&#xff08;实体类属性采用驼峰…

终身免费的Navicat数据库,不需要破解,官方支持

终身免费的Navicat数据库&#xff0c;不需要破解&#xff0c;官方支持 卸载了Navicat&#xff0c;很不爽上干货&#xff0c;Navicat免费版下载地址 卸载了Navicat&#xff0c;很不爽 公司不让用那些破解的数据库软件&#xff0c;之前一直使用Navicat。换了几款其他的数据库试了…

WebStorm 2024 for Mac JavaScript前端开发工具

Mac分享吧 文章目录 效果一、下载软件二、开始安装1、双击运行软件&#xff08;适合自己的M芯片版或Intel芯片版&#xff09;&#xff0c;将其从左侧拖入右侧文件夹中&#xff0c;等待安装完毕2、应用程序显示软件图标&#xff0c;表示安装成功3、打开访达&#xff0c;点击【文…