Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
python
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
eazydevelop-devcontainer-temp
python
Commits
a45286bb
Commit
a45286bb
authored
Aug 25, 2025
by
xiezhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
multi version support
parent
6696a919
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
176 additions
and
1 deletion
+176
-1
devcontainer-python-3.6.json
.devcontainer/devcontainer-python-3.6.json
+43
-0
devcontainer-python-3.7.json
.devcontainer/devcontainer-python-3.7.json
+43
-0
devcontainer-python-3.8.json
.devcontainer/devcontainer-python-3.8.json
+43
-0
devcontainer-python-latest.json
.devcontainer/devcontainer-python-latest.json
+44
-0
hello.py
hello.py
+3
-1
No files found.
.devcontainer/devcontainer-python-3.6.json
0 → 100644
View file @
a45286bb
{
"name"
:
"Python 3.6 Development Environment"
,
"image"
:
"hb.eazytec-cloud.com/eazytec/eazydevelop-base:ubuntu"
,
"features"
:
{
"./python"
:
{
"version"
:
"3.6"
,
"installTools"
:
true
,
"toolsToInstall"
:
"black,flake8,mypy,pytest,pylint"
},
"ghcr.io/devcontainers/features/common-utils:2"
:
{
"installZsh"
:
true
,
"configureZshAsDefaultShell"
:
true
,
"installOhMyZsh"
:
true
,
"upgradePackages"
:
true
}
},
"customizations"
:
{
"vscode"
:
{
"extensions"
:
[
"ms-python.python"
,
"ms-python.black-formatter"
,
"ms-python.flake8"
,
"ms-python.mypy-type-checker"
,
"ms-python.pylint"
,
"ms-python.pytest-adapter"
,
"ms-python.vscode-pylance"
],
"settings"
:
{
"python.defaultInterpreterPath"
:
"/usr/local/bin/python"
,
"python.configuration.updateBuildConfiguration"
:
"automatic"
,
"python.linting.enabled"
:
true
,
"python.linting.flake8Enabled"
:
true
,
"python.linting.mypyEnabled"
:
true
,
"python.formatting.provider"
:
"black"
,
"python.testing.pytestEnabled"
:
true
,
"python.testing.unittestEnabled"
:
false
,
"python.testing.nosetestsEnabled"
:
false
}
}
},
"postCreateCommand"
:
"python --version && pip --version && python /workspaces/python/hello.py"
,
"remoteUser"
:
"vscode"
}
.devcontainer/devcontainer-python-3.7.json
0 → 100644
View file @
a45286bb
{
"name"
:
"Python 3.7 Development Environment"
,
"image"
:
"hb.eazytec-cloud.com/eazytec/eazydevelop-base:ubuntu"
,
"features"
:
{
"./python"
:
{
"version"
:
"3.7"
,
"installTools"
:
true
,
"toolsToInstall"
:
"black,flake8,mypy,pytest,pylint"
},
"ghcr.io/devcontainers/features/common-utils:2"
:
{
"installZsh"
:
true
,
"configureZshAsDefaultShell"
:
true
,
"installOhMyZsh"
:
true
,
"upgradePackages"
:
true
}
},
"customizations"
:
{
"vscode"
:
{
"extensions"
:
[
"ms-python.python"
,
"ms-python.black-formatter"
,
"ms-python.flake8"
,
"ms-python.mypy-type-checker"
,
"ms-python.pylint"
,
"ms-python.pytest-adapter"
,
"ms-python.vscode-pylance"
],
"settings"
:
{
"python.defaultInterpreterPath"
:
"/usr/local/bin/python"
,
"python.configuration.updateBuildConfiguration"
:
"automatic"
,
"python.linting.enabled"
:
true
,
"python.linting.flake8Enabled"
:
true
,
"python.linting.mypyEnabled"
:
true
,
"python.formatting.provider"
:
"black"
,
"python.testing.pytestEnabled"
:
true
,
"python.testing.unittestEnabled"
:
false
,
"python.testing.nosetestsEnabled"
:
false
}
}
},
"postCreateCommand"
:
"python --version && pip --version && python /workspaces/python/hello.py"
,
"remoteUser"
:
"vscode"
}
.devcontainer/devcontainer-python-3.8.json
0 → 100644
View file @
a45286bb
{
"name"
:
"Python 3.8 Development Environment"
,
"image"
:
"hb.eazytec-cloud.com/eazytec/eazydevelop-base:ubuntu"
,
"features"
:
{
"./python"
:
{
"version"
:
"3.8"
,
"installTools"
:
true
,
"toolsToInstall"
:
"black,flake8,mypy,pytest,pylint"
},
"ghcr.io/devcontainers/features/common-utils:2"
:
{
"installZsh"
:
true
,
"configureZshAsDefaultShell"
:
true
,
"installOhMyZsh"
:
true
,
"upgradePackages"
:
true
}
},
"customizations"
:
{
"vscode"
:
{
"extensions"
:
[
"ms-python.python"
,
"ms-python.black-formatter"
,
"ms-python.flake8"
,
"ms-python.mypy-type-checker"
,
"ms-python.pylint"
,
"ms-python.pytest-adapter"
,
"ms-python.vscode-pylance"
],
"settings"
:
{
"python.defaultInterpreterPath"
:
"/usr/local/bin/python"
,
"python.configuration.updateBuildConfiguration"
:
"automatic"
,
"python.linting.enabled"
:
true
,
"python.linting.flake8Enabled"
:
true
,
"python.linting.mypyEnabled"
:
true
,
"python.formatting.provider"
:
"black"
,
"python.testing.pytestEnabled"
:
true
,
"python.testing.unittestEnabled"
:
false
,
"python.testing.nosetestsEnabled"
:
false
}
}
},
"postCreateCommand"
:
"python --version && pip --version && python /workspaces/python/hello.py"
,
"remoteUser"
:
"vscode"
}
.devcontainer/devcontainer-python-latest.json
0 → 100644
View file @
a45286bb
{
"name"
:
"Python Latest Development Environment"
,
"image"
:
"hb.eazytec-cloud.com/eazytec/eazydevelop-base:ubuntu"
,
"features"
:
{
"./python"
:
{
"version"
:
"latest"
,
"installTools"
:
true
,
"toolsToInstall"
:
"black,flake8,mypy,pytest,pylint"
},
"ghcr.io/devcontainers/features/common-utils:2"
:
{
"installZsh"
:
true
,
"configureZshAsDefaultShell"
:
true
,
"installOhMyZsh"
:
true
,
"upgradePackages"
:
true
}
},
"customizations"
:
{
"vscode"
:
{
"extensions"
:
[
"ms-python.python"
,
"ms-python.black-formatter"
,
"ms-python.flake8"
,
"ms-python.mypy-type-checker"
,
"ms-python.pylint"
,
"ms-python.pytest-adapter"
,
"ms-python.vscode-pylance"
],
"settings"
:
{
"python.defaultInterpreterPath"
:
"/usr/local/bin/python"
,
"python.configuration.updateBuildConfiguration"
:
"automatic"
,
"python.linting.enabled"
:
true
,
"python.linting.flake8Enabled"
:
true
,
"python.linting.mypyEnabled"
:
true
,
"python.formatting.provider"
:
"black"
,
"python.testing.pytestEnabled"
:
true
,
"python.testing.unittestEnabled"
:
false
,
"python.testing.nosetestsEnabled"
:
false
}
}
},
"postCreateCommand"
:
"python --version && pip --version && python /workspaces/python/hello.py"
,
"remoteUser"
:
"vscode"
}
hello.py
View file @
a45286bb
...
@@ -5,6 +5,8 @@
...
@@ -5,6 +5,8 @@
演示基本的Python语法和输出
演示基本的Python语法和输出
"""
"""
import
sys
def
main
():
def
main
():
"""
"""
主函数:打印Hello World消息
主函数:打印Hello World消息
...
@@ -14,7 +16,7 @@ def main():
...
@@ -14,7 +16,7 @@ def main():
# 演示一些基本的Python特性
# 演示一些基本的Python特性
name
=
"Python开发者"
name
=
"Python开发者"
version
=
3.11
version
=
f
"{sys.version_info.major}.{sys.version_info.minor}"
print
(
f
"你好,{name}!你正在使用Python {version}"
)
print
(
f
"你好,{name}!你正在使用Python {version}"
)
# 简单的数学运算
# 简单的数学运算
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment