78 lines
3.8 KiB
HTML
78 lines
3.8 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='python_css.css') }}">
|
|
<link rel="icon" href="{{ url_for('static', filename='icon.png') }}"> <!--添加图标-->
|
|
<title>Homepage</title>
|
|
</head>
|
|
<body>
|
|
<header>
|
|
<nav>
|
|
<ul>
|
|
<!-- <li>yilv blog</li> -->
|
|
<li class="logo"><a href="{{ url_for('index') }}"><img src="{{ url_for('static', filename='icon.png') }}" alt="Logo"></a></li>
|
|
<li><a href="{{ url_for('index') }}">HOMEpage</a></li>
|
|
<li><a href="{{ url_for('signin') }}">Sign In</a></li>
|
|
<li><a href="{{ url_for('signup') }}">Sign Up</a></li>
|
|
<li><a href="{{ url_for('dashboard') }}">Dashboard</a></li>
|
|
<!-- <li><a href="{{ url_for('commands') }}">commands</a></li> -->
|
|
{% if 'user' in session %}
|
|
<li><a href="{{ url_for('user') }}">User Profile</a></li>
|
|
{% endif %}
|
|
</ul>
|
|
</nav>
|
|
</header>
|
|
<main>
|
|
<div class="container">
|
|
<div class="sidebar">
|
|
<h2 style="text-align: center;">python教程</h2>
|
|
<ul>
|
|
<li><a href="{{ url_for('python') }}">python环境搭建</a></li>
|
|
<li><a href="{{ url_for('python2') }}">python基本语法</a></li>
|
|
<li><a href="#">第一个python程序</a></li>
|
|
</ul>
|
|
|
|
</div>
|
|
<!-- 这里添加内容-->
|
|
<div id="content-list">
|
|
<div class="content-item">
|
|
<div>
|
|
<h2>python环境搭建</h2>
|
|
<ul>
|
|
<li><h3>要在你的系统上搭建Python环境,你可以按照以下步骤操作。不同操作系统(Windows、macOS和Linux)可能略有不同。</h3></li>
|
|
<li><strong><i>1.安装Python</i></strong></li>
|
|
<li>(1)windows环境
|
|
访问<a href="www.python.org">Python官网</a>并下载最新版本的Python安装包(通常是Python 3.x版本)。<br>
|
|
运行下载的安装包,在安装选项中勾选“Add Python to PATH”。<br>
|
|
按照提示完成安装。<br></li>
|
|
<li>(2)linux环境<br>
|
|
大多数Linux发行版自带Python,但你可以通过包管理器安装最新版本。</li>
|
|
<li class="">ubuntu/debian:<br>
|
|
sudo apt update
|
|
sudo apt install python3 python3-pip
|
|
</li>
|
|
<li>fedora:<br>
|
|
sudo dnf install python3 python3-pip
|
|
</li>
|
|
<li><strong><i>2.验证安装</i></strong><br>
|
|
python -V或者python3 -V</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<footer>
|
|
<div class="footer-container">
|
|
<div class="footer-item"><a href="{{url_for('aboutus')}}"><strong>About Us</strong></a></div>
|
|
<div class="footer-item"><a href="https://flask.palletsprojects.com"><strong>About Flask</strong></a></div>
|
|
<div class="footer-item"><a href="http://www.scuec.edu.cn"><strong>About SCEUC</strong></a></div>
|
|
</div>
|
|
</footer>
|
|
</main>
|
|
<script src="{{ url_for('static', filename='js/script.js') }}"></script>
|
|
</body>
|
|
</html>
|