Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Kwan的解忧杂货铺@新空间代码工作室
python-demo
提交
d63485fe
P
python-demo
项目概览
Kwan的解忧杂货铺@新空间代码工作室
/
python-demo
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
python-demo
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
d63485fe
编写于
7月 20, 2024
作者:
秦
秦英杰
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix:整理
上级
2d5f6f90
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
29 addition
and
13 deletion
+29
-13
.idea/material_theme_project_new.xml
.idea/material_theme_project_new.xml
+10
-0
.idea/workspace.xml
.idea/workspace.xml
+6
-0
01_Python入门语法/01_Python中的字面量.py
01_Python入门语法/01_Python中的字面量.py
+3
-3
01_Python入门语法/02_Python中的注释.py
01_Python入门语法/02_Python中的注释.py
+2
-2
01_Python入门语法/04_Python中的数据类型.py
01_Python入门语法/04_Python中的数据类型.py
+3
-3
01_Python入门语法/05_Python中的数据类型转换.py
01_Python入门语法/05_Python中的数据类型转换.py
+1
-1
01_Python入门语法/06_Python中的标识符.py
01_Python入门语法/06_Python中的标识符.py
+1
-1
01_Python入门语法/07_Python的字符串拼接.py
01_Python入门语法/07_Python的字符串拼接.py
+1
-1
01_Python入门语法/08_Python的字符串格式化.py
01_Python入门语法/08_Python的字符串格式化.py
+2
-2
未找到文件。
.idea/material_theme_project_new.xml
0 → 100644
浏览文件 @
d63485fe
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"MaterialThemeProjectNewConfig"
>
<option
name=
"metadata"
>
<MTProjectMetadataState>
<option
name=
"userId"
value=
"e706d3a:190c6184f70:-7c34"
/>
</MTProjectMetadataState>
</option>
</component>
</project>
\ No newline at end of file
.idea/workspace.xml
浏览文件 @
d63485fe
...
...
@@ -61,6 +61,7 @@
<component
name=
"RunManager"
selected=
"Python.13_numpy"
>
<configuration
name=
"13_numpy"
type=
"PythonConfigurationType"
factoryName=
"Python"
temporary=
"true"
nameIsGenerated=
"true"
>
<module
name=
"python-demo"
/>
<option
name=
"ENV_FILES"
value=
""
/>
<option
name=
"INTERPRETER_OPTIONS"
value=
""
/>
<option
name=
"PARENT_ENVS"
value=
"true"
/>
<envs>
...
...
@@ -83,6 +84,7 @@
</configuration>
<configuration
name=
"main"
type=
"PythonConfigurationType"
factoryName=
"Python"
nameIsGenerated=
"true"
>
<module
name=
"python-demo"
/>
<option
name=
"ENV_FILES"
value=
""
/>
<option
name=
"INTERPRETER_OPTIONS"
value=
""
/>
<option
name=
"PARENT_ENVS"
value=
"true"
/>
<envs>
...
...
@@ -105,6 +107,7 @@
</configuration>
<configuration
name=
"problem_solving_01 (1)"
type=
"PythonConfigurationType"
factoryName=
"Python"
temporary=
"true"
nameIsGenerated=
"true"
>
<module
name=
"python-demo"
/>
<option
name=
"ENV_FILES"
value=
""
/>
<option
name=
"INTERPRETER_OPTIONS"
value=
""
/>
<option
name=
"PARENT_ENVS"
value=
"true"
/>
<envs>
...
...
@@ -127,6 +130,7 @@
</configuration>
<configuration
name=
"problem_solving_01 (2)"
type=
"PythonConfigurationType"
factoryName=
"Python"
temporary=
"true"
nameIsGenerated=
"true"
>
<module
name=
"python-demo"
/>
<option
name=
"ENV_FILES"
value=
""
/>
<option
name=
"INTERPRETER_OPTIONS"
value=
""
/>
<option
name=
"PARENT_ENVS"
value=
"true"
/>
<envs>
...
...
@@ -149,6 +153,7 @@
</configuration>
<configuration
name=
"problem_solving_01"
type=
"PythonConfigurationType"
factoryName=
"Python"
temporary=
"true"
nameIsGenerated=
"true"
>
<module
name=
"python-demo"
/>
<option
name=
"ENV_FILES"
value=
""
/>
<option
name=
"INTERPRETER_OPTIONS"
value=
""
/>
<option
name=
"PARENT_ENVS"
value=
"true"
/>
<envs>
...
...
@@ -171,6 +176,7 @@
</configuration>
<configuration
name=
"test_mysql"
type=
"PythonConfigurationType"
factoryName=
"Python"
temporary=
"true"
nameIsGenerated=
"true"
>
<module
name=
"python-demo"
/>
<option
name=
"ENV_FILES"
value=
""
/>
<option
name=
"INTERPRETER_OPTIONS"
value=
""
/>
<option
name=
"PARENT_ENVS"
value=
"true"
/>
<envs>
...
...
01_Python入门语法/01_Python中的字面量.py
浏览文件 @
d63485fe
666
13.14
"
黑马
程序员"
"程序员"
print
(
666
)
print
(
13.14
)
print
(
"黑马程序员"
)
\ No newline at end of file
print
(
"程序员"
)
\ No newline at end of file
01_Python入门语法/02_Python中的注释.py
浏览文件 @
d63485fe
...
...
@@ -8,12 +8,12 @@ print(name)
# 写一个浮点数字面量
13.14
# 写一个字符串字面量
"
黑马
程序员"
"程序员"
# 通过print语句输出各类字面量
print
(
666
)
print
(
13.14
)
print
(
"
黑马
程序员"
)
print
(
"程序员"
)
# 单行注释
#
...
...
01_Python入门语法/04_Python中的数据类型.py
浏览文件 @
d63485fe
# 方式1: 使用print直接输出类型信息
print
(
type
(
"
黑马
程序员"
))
print
(
type
(
"程序员"
))
print
(
type
(
666
))
print
(
type
(
11.345
))
# 方式2: 使用变量存储type()语句的结果
string_type
=
type
(
"
黑马
程序员"
)
string_type
=
type
(
"程序员"
)
int_type
=
type
(
666
)
float_type
=
type
(
11.345
)
print
(
string_type
)
...
...
@@ -14,6 +14,6 @@ print(float_type)
# 方式3: 使用type()语句,查看变量中存储的数据类型信息
name
=
"
黑马
程序员"
name
=
"程序员"
name_type
=
type
(
name
)
print
(
name_type
)
01_Python入门语法/05_Python中的数据类型转换.py
浏览文件 @
d63485fe
...
...
@@ -9,7 +9,7 @@ print(type(num), num)
num2
=
float
(
"11.345"
)
print
(
type
(
num2
),
num2
)
# 错误示例,想要将字符串转换成数字,必须要求字符串内的内容都是数字
# num3 = int("
黑马
程序员")
# num3 = int("程序员")
# print(type(num3), num3)
# 整数转浮点数
float_num
=
float
(
11
)
...
...
01_Python入门语法/06_Python中的标识符.py
浏览文件 @
d63485fe
...
...
@@ -7,7 +7,7 @@ name_1 = "张三"
# 规则2:大小写敏感
Itheima
=
"
黑马
程序员"
Itheima
=
"程序员"
itheima
=
666
print
(
Itheima
)
print
(
itheima
)
...
...
01_Python入门语法/07_Python的字符串拼接.py
浏览文件 @
d63485fe
# 字符串字面量之间的拼接
print
(
"学IT来黑马"
+
"月薪过万"
)
# 字符串字面量和字符串变量的拼接
name
=
"
黑马
程序员"
name
=
"程序员"
address
=
"建材城东路9号院"
tel
=
4006189090
...
...
01_Python入门语法/08_Python的字符串格式化.py
浏览文件 @
d63485fe
# 通过占位的形式,完成拼接
name
=
"
黑马
程序员"
name
=
"程序员"
message
=
"学IT来:%s"
%
name
print
(
message
)
...
...
@@ -9,7 +9,7 @@ avg_salary = 16781
message
=
"Python大数据学科,北京%s期,毕业平均工资:%s"
%
(
class_num
,
avg_salary
)
print
(
message
)
name
=
"
传智播
客"
name
=
"
博
客"
setup_year
=
2006
stock_price
=
19.99
message
=
"%s,成立于:%d,我今天的股价是:%f"
%
(
name
,
setup_year
,
stock_price
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录