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
2