跳至主要內容
05-字符串「少儿编程一对一教学」

字符串定义

image-20230110190819252

字符串为什么会有三种创建方法

  1. 单双引号混用:
s = "I'm lilei."
print(s)

AI悦创原创...大约 3 分钟Python 1v1Thomas-hw-notePython 1v1Thomas-hw-note
03-第二节-初识数据类型「少儿编程一对一教学」

Python有哪些数据类型呢?

image-20221206194805198
image-20221108202844798
image-20221108205617454
# -*- coding: utf-8 -*-
# @Time    : 2022/10/9 17:46
# @Author  : AI悦创
# @FileName: lesson20221009.py
# @Software: PyCharm
# @Blog    :https://bornforthis.cn/
s = "Hello aiyuechuangodododdodde"
print(type(s))
# 三大特性
# 1、有序性:从左到右 0 开始。从右到左-1开始
# 2. 不可变性 不可变指的是:在代码运行当中不可以被改变
# 3. 任意数据类型,你键盘可以输入的任何字符,都可以放在字符串中

# a = 1
# a = 10

AI悦创原创...大约 2 分钟Python 1v1Thomas-hw-notePython 1v1Thomas-hw-note
11-网站维护&Python变量

1. 修复网站

2. 更新留言

3. 账号密码忘记,及时找回「评论管理」

4. 评论后台连接:记得加 ui

5. Python 变量

5.1 什么是变量

变量就是在计算机的内存当中,开辟空间。

变量是可以被覆盖的。

name1 = "hanmeimei"
name1 = "lilei"
print(name1)

AI悦创原创...大约 1 分钟Python 1v1Thomas-hw-notePython 1v1Thomas-hw-note
10-图标设置

使用 iconfont

1. 挑选想要的图标

image-20220927194735109
image-20220927195123188

2. 打开 VSCODE

有 bug 下节课继续弄,我课后调试迁移。

搜索设置

作业

课后反馈


AI悦创原创...大约 1 分钟Python 1v1Thomas-hw-notePython 1v1Thomas-hw-note
08-多菜单栏设置

1.debug

缺少 ])

所有的符号,都是成双成对的。()[]

2. 多菜栏设置

{ 
    text: "专栏",
    icon: "workingDirectory",
    children: [
      { 
        text: "IT 文档主页",
        children: [
          "/column",
          { text: "私教回放", icon: "play", link: "/column/playback/"},
          { text: "Python 合集", icon: "python", link: "/column/py/Python_tutorial/"},
          { text: "Python 私教", icon: "python", link: "/column/py/basequestion/"},
          { text: "Web 专栏", icon: "network", link: "/column/web/base"},
          { text: "Python 办公自动化", icon: "python", link: "/column/pyauto"},
          { text: "题解", icon: "code", link: "/column/tijie"},
          { text: "公开课资料", icon: "blog", link: "/column/pyauto/gkk/"},
          { text: "编程思维", icon: "siwei", link: "/column/Programmingthinking/"},
          { text: "零基础学习机器学习", icon: "centos", link: "/column/TensorFlow/零基础实战机器学习/"},
          { text: "数据分析", icon: "zhuzhuangtu", link: "/column/data_analysis/week1/01"},
          { text: "数据结构与算法", icon: "shujujiegou-01", link: "/column/data-structure/week1/01"},
          { text: "Python 60 Day", icon: "python", link: "/column/python60/01"},
          { text: "AI悦创·天池计划", icon: "dianchi1", link: "/column/tianchi/Python/Python01"},
          { text: "Java体系课", icon: "java", link: "/column/Java/chapter01/01.md"},
          { text: "AI悦创·1v1", icon: "1v1-4", link: "/1v1/"},
          { text: "摄影入门课", icon: "cameraadd", link: "/column/摄影入门课/"},
        ]
      },

AI悦创原创...大约 2 分钟Python 1v1Thomas-hw-notePython 1v1Thomas-hw-note
07-设置网站&文章编写 debug & 菜单栏

1. 文章加密解决

解决方法有两种:

themes.ts

  1. 文件名称、文件夹全部用英文才可以出现锁;
  2. [encodeURI("/column/TensorFlow/零基础实战机器学习/")]: "123123a",
[encodeURI("链接")]: "123123a",

AI悦创原创...大约 2 分钟Python 1v1Thomas-hw-notePython 1v1Thomas-hw-note
06-设置网站&文章编写 debug

1. 文章编写 debug

写文章,就只用 Typora,修改网站采用 VSCODE

图片:路径要添加 ./

title: 要添加空格

2. 文章加密

  • .vuepress>>>theme.ts
encrypt: {
    config: {
      "/1v1/01-Thomas-hw-note/": ["123123"],
    },
  },

AI悦创原创...大约 1 分钟Python 1v1Thomas-hw-notePython 1v1Thomas-hw-note
05-设置网站

1. 购买域名

2. 注册 CSDN

利用 CSDN 做图床

Command + A 全选

3. 修改背景图片链接

4. 删除

image-20220830201148847

README.md>projects

5. 修改 footer


AI悦创原创...大约 2 分钟Python 1v1Thomas-hw-notePython 1v1Thomas-hw-note
04-设置网站

1. 课前准备

  1. 运行本地服务器
  2. 打开访达
  3. 打开 vscode

2. 修改网页左上角

  1. 左上角的标题

    1. .vuepress/config.ts
  2. 左上角的 logo

    1. .vuepress/theme.ts

3. 修改博客作者

路径:.vuepress/theme.ts


AI悦创原创...大约 1 分钟Python 1v1Thomas-hw-notePython 1v1Thomas-hw-note
03-基本部署&设置网站

1. 进入网站路径

1.1 智慧方法

cd happydoggy
cd Ohlalala1021.github.io

1.2 偷懒方法

1.3 运行本地运行

yarn run docs:dev

AI悦创原创...大约 2 分钟Python 1v1Thomas-hw-notePython 1v1Thomas-hw-note
01-博客网站环境搭建

0. 讲解作业

  1. 考点:变量

输出特定格式

a = 1
b = 2
c = 3

AI悦创原创...大约 2 分钟Python 1v1Thomas-hw-notePython 1v1Thomas-hw-note