字符串定义
字符串为什么会有三种创建方法
- 单双引号混用:
s = "I'm lilei."
print(s)
原创2023年1月5日...大约 3 分钟
s = "I'm lilei."
print(s)
num1 = 1
num2 = 2
result = num1 + num2
print(result) # 3
# -*- 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
题目链接:https://bornforthis.cn/column/py/basequestion/special_variabl.html
变量就是在计算机的内存当中,开辟空间。
变量是可以被覆盖的。
name1 = "hanmeimei"
name1 = "lilei"
print(name1)
有 bug 下节课继续弄,我课后调试迁移。
缺少 ])
。
所有的符号,都是成双成对的。()
、[]
。
{
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/摄影入门课/"},
]
},
解决方法有两种:
themes.ts
[encodeURI("/column/TensorFlow/零基础实战机器学习/")]: "123123a",
[encodeURI("链接")]: "123123a",
写文章,就只用 Typora,修改网站采用 VSCODE
图片:路径要添加 ./
title: 要添加空格
.vuepress>>>theme.ts
encrypt: {
config: {
"/1v1/01-Thomas-hw-note/": ["123123"],
},
},
利用 CSDN 做图床
Command + A 全选
README.md>projects
左上角的标题
.vuepress/config.ts
左上角的 logo
.vuepress/theme.ts
路径:.vuepress/theme.ts
cd happydoggy
cd Ohlalala1021.github.io
a = 1
b = 2
c = 3
https://www.aliyundrive.com/s/cx7Kqc6Ss2f
a = 1
b = 2
c = 3