# Python Teaching Code
This repository ("repo") contains a variety of starter project code and demo code for showing different capabilities and how to use them in Python.
Begin by forking this repository to your own Github account. Next, you can clone it to your machine and run the examples and customize the code. If you do not fork it first, you will not be able to save changes, as you do not have permission to change this original template in my account.
The projects included here include working code and some experimental code. Some also require additional libraries and capabilities on your computer in order for you to use them. Those are noted below.
1. Gradetracker
> This project is a simple demonstration of an application in fewer than 100 lines of code. You can see functions and other capabilities used here. The code requires the built-in statistics library to be imported. It should run on any version of Python 3.
2. KSU scrape
> This project demonstrates how Python can be used to grab data from a web page and process it into orderly results that can be used for further analysis and actions. It requires several add-on libraries. You will especially need to install the beautiful soup library and the lxml parser library in order to use this code. The command line command for installing is '''pip install bs4''' This may work for you. Otherwise, you may need to try '''python -m pip install bs4''' On a Mac, you will need to guide the install to your Python 3 installation, since Macs also already have Python 2 associated with the command '''python''' by default. So, you would run '''pip3 install bs4'''. Similarly, you can install other modules by putting their official name instead of '''bs4''' in the preceding commands. For more info, watch https://www.youtube.com/watch?v=jnpC_Ib_lbc.
3. calcGUI
> This project shows you a Python application working in a graphical user interface window with buttons and bindings to your keyboard keys. It should work on all Python 3.6 or newer versions, because they have the GUI library tkinter pre-installed.
4. DB in Python
> This project demonstrates how to connect Python to a local MySQL database server. It requires that you download and install MySQL server on your local machine first. Next, you have to import the database of student data (.sql file) into your MySQL server. Then, you need to edit the code to use the password for your MySQL server on your machine and install and import the library to connect to MySQL. Then, it can work! There is also a folder here with experimental code for transforming gradetracker into GUI and DB-driven versions. These may not work, but you are welcome to test them and upgrade them.
5. RaspberryPi button
> This project requires some wiring as well as a RaspberryPi computer and associated peripherals.
6. Web Page with Flask
> This project requires that you install the flask module. After that, when you run it, it will create a web server on your machine and host your Python and HTML files in dynamic web pages.
7. Data Analytics with Jupyter and Pandas
> COMING SOON
没有合适的资源?快使用搜索试试~ 我知道了~
这个 repo 包含各种启动项目代码和演示代码,用于展示不同的功能以及如何在 Python 中使用它们 .zip
共87个文件
ipynb:26个
py:23个
txt:11个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 143 浏览量
2024-11-24
19:53:48
上传
评论
收藏 280KB ZIP 举报
温馨提示
这个 repo 包含各种启动项目代码和演示代码,用于展示不同的功能以及如何在 Python 中使用它们。Python教学代码该存储库(“repo”)包含各种启动项目代码和演示代码,用于展示不同的功能以及如何在 Python 中使用它们。首先将此存储库分叉到您自己的 Github 帐户。接下来,您可以将其克隆到您的机器上并运行示例并自定义代码。如果您不先分叉它,您将无法保存更改,因为您无权更改我帐户中的原始模板。此处包含的项目包括工作代码和一些实验代码。有些还需要您的计算机上有其他库和功能才能使用。这些如下所示。成绩追踪器该项目是少于 100 行代码的简单应用程序演示。您可以在此处查看所使用的函数和其他功能。代码需要导入内置统计库。它应该可以在任何版本的 Python 3 上运行。堪萨斯州立大学这个项目演示了如何使用 Python 从网页抓取数据并将其处理成有序的结果,以便用于进一步的分析和操作。它需要几个附加库。为了使用此代码,你尤其需要安装 beautiful soup 库和 lxml 解析器库。安装的命令行命令是 '''pip install bs4'
资源推荐
资源详情
资源评论
收起资源包目录
这个 repo 包含各种启动项目代码和演示代码,用于展示不同的功能以及如何在 Python 中使用它们。.zip (87个子文件)
3 calcGUI
code to add sin button.py.txt 388B
Tkinter Click Binding.py 957B
calcGUI.py 9KB
CalcGUIModified.py 10KB
.DS_Store 10KB
5 RaspberryPi button
.DS_Store 6KB
raspberrypibuttoncontrol.py 1KB
标签.txt 6B
LICENSE 1KB
Python Fundamentals
Module_3.1_Practice_Python_Fundamentals.ipynb 15KB
Module_3.0_List_Iteration_Python_Fundamentals.ipynb 59KB
Module_1.0_Tutorials_Indexes_String_Sequences_Python_Fundamentals.ipynb 34KB
Module_3.2_Required_Code_Python_Fundamentals.ipynb 4KB
Module_4.2_Required_Code_Python_Fundamentals.ipynb 6KB
.library.json 353B
Module_1.2_Required_Code_Python_Fundamentals.ipynb 3KB
Module_2.1_Practice_Python_Fundamentals.ipynb 8KB
Module_2.0_Tutorials_Sequence_Lists_Python_Fundamentals.ipynb 31KB
Module_4.1_Practice_Python_Fundamentals.ipynb 8KB
Module_2.2_Required_Code_Python_Fundamentals.ipynb 4KB
Module_4.0_Tutorials_Files_Python_Fundamentals.ipynb 80KB
extras
bad_curl.py 178B
green-play-button.svg 838B
CURL example.py 133B
import poem.py 267B
functions_play.py 350B
req_code_file_ex.py 66B
Module_1.1_Practice_Python_Fundamentals.ipynb 10KB
Module_5.0_Required_FINAL_Project_Python_Fundamentals.ipynb 5KB
images
poem_mixer.png 55KB
words_after_gG.png 32KB
poem2_messy.txt 75B
green-play-button.svg 838B
list_o_matic.png 15KB
world_temp_mean.csv 222B
cities_messy.txt 77B
phone_letters.png 16KB
digits_of_pi.txt 303B
play.svg 5KB
poem1.txt 56B
rainbow.txt 43B
cities.txt 56B
rainbow_messy.txt 71B
poem2.txt 57B
6 Web Page with Flask
.DS_Store 6KB
basic page
templates
home.html 365B
layout.html 650B
about.html 210B
static
css
main.css 1KB
script1.py 1KB
资源内容.txt 1KB
4 DB in Python
.DS_Store 6KB
MySQL Demo
DBconnectgrades.py 2KB
StudentsDBdump.sql 3KB
Sample Student Data.csv 9KB
Sample Student Data.xlsx 20KB
GradeTrackerExperiments
GUI Login Application.py 5KB
GradeTrackerDB.py 4KB
GradeTrackerGUI.py 4KB
SQLite Demo
myinventory.db 12KB
newdb.py 990B
new.db 12KB
vinventory.py 7KB
2 ksu scrape
cms_scrape.py 1KB
ksu_scrape_new.py 2KB
.gitignore 1KB
functions_play.py 533B
Python Absolute Beginner
Module_2.2_Required_Code.ipynb 2KB
Module_4.1_Practice.ipynb 8KB
Module_3.1_Practice.ipynb 9KB
Module_1.0_Tutorials_START_HERE.ipynb 93KB
Module_4.2_Required_Code.ipynb 5KB
extras
.library.json 334B
green-play-button.svg 838B
calculate_tx.py 753B
req_code_file_ex.py 66B
Module_3.0_Tutorials_Conditionals.ipynb 34KB
Module_2.1_Practice.ipynb 4KB
Module_2.0_Tutorials_Functions.ipynb 24KB
Module_5_Required_FINAL_Project.ipynb 5KB
Module_4.0_Tutorials_Nested_Conditionals.ipynb 23KB
Module_1.1_Practice.ipynb 24KB
Module_3.2_Required_Code.ipynb 3KB
Module_1.2_Required_Code.ipynb 3KB
1 gradetracker
GradeTracker_more_secure.py 3KB
GradeTracker.py 4KB
README.md 3KB
共 87 条
- 1
资源评论
徐浪老师
- 粉丝: 8076
- 资源: 7322
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功