English | 中文
This repository contains all homework (hw), labs, and projects for the UC Berkeley CS61A course. It is designed to facilitate practice and improve your understanding of the material.
You can fork this repository to create your own working environment, track your progress, and store your solutions. For reference and study, you can also access the CS61A website archive mirrored here.
- Homework (hw): Reinforce lecture topics with conceptual and coding exercises.
- Labs: Guided practice to understand core concepts.
- Projects: Comprehensive assignments to apply knowledge in larger-scale coding challenges.
- Go to the repository: CS61A-Assignments.
- Click the "Fork" button in the top-right corner of the page to create your own copy of the repository.
- Open your terminal or command prompt.
- Clone your forked repository to your local machine:
git clone https://github.com/<your-username>/CS61A-Assignments.git
- Navigate into the repository folder:
cd CS61A-Assignments
- Choose the directory for the assignment you want to work on (e.g.,
hw01
for Homework 1):cd hw/hw01
- Open the
.py
files in your favorite code editor and start solving!
After completing or making progress on an assignment, use the following command to test your solution locally:
python3 ok -q <file_name> --local
Replace <file_name>
with the name of the specific file you want to test.
- Ensure you have Python installed on your system to run the assignments. CS61A primarily uses Python 3.
- Use a code editor like VS Code or PyCharm for an enhanced coding experience.
- This repository is unofficial and is not affiliated with or endorsed by UC Berkeley or the CS61A teaching team.
- All course materials and content are property of UC Berkeley CS61A staff and are provided here for personal learning and practice only. Please respect academic integrity policies.
本仓库包含了 UC Berkeley CS61A 课程的所有 家庭作业 (hw)、实验 (labs) 和 项目 (projects)。通过 Fork 本仓库,您可以创建自己的工作环境,跟踪学习进度并保存作业的解答。同时,您还可以访问我们提供的 CS61A 网站镜像,用于参考和学习。
- 家庭作业 (hw): 巩固课程讲解内容,包含概念和代码练习。
- 实验 (labs): 指导练习,帮助理解核心概念。
- 项目 (projects): 通过大型项目综合应用所学知识。
- 打开仓库:CS61A-Assignments。
- 点击页面右上角的 "Fork" 按钮,将仓库复制到您的 GitHub 账号下。
- 打开终端或命令提示符。
- 将 Fork 后的仓库克隆到本地:
git clone https://github.com/<your-username>/CS61A-Assignments.git
- 进入仓库目录:
cd CS61A-Assignments
- 选择您想完成的作业目录,例如
hw01
表示家庭作业 1:cd hw/hw01
- 打开
.py
文件,开始编写代码!
完成作业或取得进展后,使用以下命令在本地测试代码:
python3 ok -q <file_name> --local
将 <file_name>
替换为您希望测试的具体文件名称。
- 确保您的系统已安装 Python,CS61A 主要使用 Python 3。
- 推荐使用 VS Code 或 PyCharm 等代码编辑器,提升编程体验。
- 本仓库为 非官方 项目,与 UC Berkeley 及 CS61A 教学团队无关。
- 所有课程内容版权归 UC Berkeley CS61A 团队所有,仅供 个人学习和练习 使用,请遵守学术诚信规定。