- 1v1135
- 留学生作业辅导90
- Python一对一辅导85
- 留学生辅导83
- JavaScript tutorial82
- 数据结构一对一78
- Python 1v176
- Python 一对一教学72
- Python一对一教学61
- python 1v160
- ChatGPT57
- 纽约大学一对一53
- Python 网络爬虫专栏53
- Python52
- java 1v151
- Python 辅导47
- 编程一对一教学47
- NYU 1v143
- web 一对一42
- 少儿编程一对一39
- web 专栏35
- 墨尔本大学CS32
- unimelb32
- Python 进阶30
- Python 私教练习题【基础】30
- web29
- Java体系课29
- 英国-布里斯托尔27
- 程序员的私房菜26
- NYU编程辅导25
- NYU Python辅导25
- django体系课22
- 数据分析22
- 中山大学21
- 嘉兴大学Python20
- 字节跳动校园20
- 中山大学Python20
- Python 办公自动化18
- 数据结构与算法18
- php17
- Thomas-hw-note16
- Python 基础笔记16
- Unity休闲手机游戏开发16
- Unity16
- uic15
- html15
- 编程算法同步学14
- 一本通 Python 题解14
- SCU CS13
- Santa Clara University13
- 圣克拉拉大学13
- UIC Information Space12
- svg12
- 前端12
- 悦创来信·去无方向的信12
- Python Lab11
- CS-PY101 Lab11
- Java 1v110
- Python辅导10
- web 1v110
- StableDiffusion10
- 打工人·进化岛10
- Python全栈60天精通之路10
- C 练习10
- Python notebook10
- 墨尔本大学9
- C教程9
- 中文技术文档的写作规范9
- NYU – Tandon School of Engineering9
- 轻松入门 Python—玩中学9
- Python 基础8
- 随笔8
- HJB love HR8
- 量子态8
- 量子计算8
- Python量子计算8
- 小红书免费答疑8
- Python 作业代写8
- 摄影专栏8
- MacOS 技巧8
- 我收集的网站7
- 编程经验7
- python7
- 福州大学 Python7
- 福州大学7
- GTIIT Moodle7
- 广东以色列理工学院7
- Guangdong Technion-Israel Institute of Technology7
- Java FQA7
- Python 算法科普指南7
- Python 合集7
- Java 课程补充6
- codingbat6
- MA4076
- 伦敦政经6
- LSE Home6
- Python期末辅导6
- Python期末1v1辅导6
- C++竞赛6
- Midjourney6
- Python 练习答案6
- The University of Melbourne6
- HTML5
- python数据结构与算法一对一辅导5
- 少儿编程一对一教学5
- 同济大学5
- 同济大学Python5
- 高中生Python辅导5
- creanlutheran.org5
- 操作系统5
- 案例上手 Python 数据可视化5
- 数据分析一对一辅导5
- 数据分析一对一教学5
- TensorFlow5
- 面试攻略5
- ole.bris.ac.uk5
- Pygame5
- C++专栏5
- C++一对一教学5
- C++NOIP5
- C++少儿编程一对一5
- 墨问西东·笔记5
- 数据分析实战 45 讲5
- 技术杂谈4
- 墨尔本大学C语言辅导4
- 墨尔本大学C语言一对一辅导4
- 墨尔本大学C语言期中考4
- 留学生Python辅导4
- brew4
- Linux4
- 华为机试题解4
- 办公自动化4
- LangChain 一对一教学4
- Matplotlib Python 数据可视化4
- 小白补充4
- 零基础实战机器学习4
- C++4
- C++教程4
- sql4
- easy sql4
- 科普3
- VPN3
- 小技巧3
- 澳洲大学一对一3
- 英国国王学院3
- 意大利Python一对一教学3
- 日本Python一对一教学3
- 最大公约数3
- GCD3
- 辗转相除法3
- 欧几里得算法3
- 算法实现3
- 浙江工业大学3
- 浙江工业大学Python3
- 浙江工业大学Python真题3
- NYU3
- 高校竞赛辅导3
- Python一对一答疑3
- 数据结构与算法合集3
- PPT 教程3
- Rust 语言从入门到实战3
- 教师资格证3
- C 语言教程3
- Markdown 基础3
- 私教回放3
- 治愈心理学3
- Python一对一答疑帖3
- Java Quiz3
- 机器学习算法3
- Python 练习3
- 哥伦比亚大学3
- 直播2
- OBS2
- Numpy and pandas2
- 转载2
- 外文文章2
- 翻墙2
- 编程私教答疑2
- PS 笔记2
- 新加坡2
- NYU University2
- UTS2
- NOC2
- NOC 初赛2
- NOC Python辅导2
- NOC Python一对一辅导2
- Python NOC辅导2
- Monash University2
- Monash University Python2
- Monash University Python作业代写2
- 债卷办公自动化程序2
- 债卷办公自动化程序代写2
- NOIP一对一辅导2
- NOI一对一辅导2
- gatech.edu2
- 乔治亚理工2
- 加州大学美国2
- Python 小技巧2
- crawler2
- VuePress2
- 得到2
- 薛兆丰的经济学课2
- 悦创·概率论22讲2
- 编程思维2
- 0基础数据思维课2
- 华为机考2
- 华为机考内部题目2
- 心灵咖啡馆2
- 精神健康2
- 自我提升2
- 松弛2
- Python 问卷调查2
- Python问卷调查2
- 问卷调查数据Python2
- 智能机器人实战课2
- LangChain 实战课2
- C#教程2
- Java supplement2
- 机器学习实战2
- Machine learning2
- Python Flask2
- R 语言一对一辅导2
- R2
- 数据可视化2
- git2
- 运维2
- Python 私教问答2
- Python 补充知识2
- 编辑器技巧2
- Web FQA2
- 人人都能学会的编程入门课2
- Python 体系课1
- 上课指南1
- Web 1v11
- AI产品经理1
- 友情链接1
- 工具表1
- DATA1
- Python私教一对一教学1
- 线上编程一对一教学1
- Development library1
- MacWK1
- Mac破解安装包1
- 把你的格局打开1
- Python指导1
- NOI竞赛辅导1
- GitBook1
- 启发俱乐部1
- live1
- life1
- now1
- Bornforthis项目1
- 创业会议1
- 刘润1
- Python Base Notebook1
- Numpy1
- 悦创杂谈1
- AI悦创·研究项目1
- JavaScript1
- Python time1
- IDEA 编辑器1
- 破解1
- WebStorm1
- 编程私教计划1
- Git1
- Java1
- 编程一对一课程计划1
- Java 笔记1
- 私教学员分享1
- 编程一对一学员分享1
- Java 补充1
- 进制转换1
- 计算机术语1
- nodejs1
- SublimeText 小技巧1
- stackoverflow1
- machine-learning1
- scikit-learn1
- xgboost1
- gridsearchcv1
- 生物1
- 物理1
- HTML 1v11
- 前端一对一1
- 南开大学1
- 南开大学Python辅导1
- 日本1
- 青英大学1
- 青英大学Python一对一教学1
- 日本本科CS辅导1
- codewars专项练习「集训营」1
- codewars真题练习「集训营」1
- 家长沟通1
- 广西大学1
- 广西大学研究生1
- unimelb cs1
- THE UNIVERSITY OF TORONTO – MISSISSAUGA1
- 麦马大学1
- mcmaster1
- McMaster University1
- 重庆大学1
- 编译原理一对一教学1
- Linux 手册1
- University of Pennsylvania1
- Python一对一1
- Python 小玩意1
- Python基础1
- Pycharm1
- turtle1
- Host1
- Python auto1
- Python办公自动化1
- 自动化实战1
- 百度收录小技巧1
- 软件破解1
- 编程题解1
- 工作1
- northeastern一对一辅导1
- 东北大学Python辅导1
- 东北大学Python一对一辅导1
- js1
- c++1
- tkinter1
- mysql1
- MacOS1
- Hugo1
- github1
- 留学生Java辅导1
- Java辅导1
- Java一对一1
- 数据结构与算法一对一辅导1
- 冒泡排序1
- 梯子1
- PyCharm1
- C语言一对一1
- C语言大学不挂科辅导1
- Python毕业设计辅导1
- Python毕业设计1v1辅导1
- python课设1
- 上海市计算机学会竞赛平台1
- XiaoYue BigModel README1
- Markdown1
- Final cut Pro1
- 编程私教题目1
- Python Turtle1
- Python Turtle 入门与实战1
- C FAQ1
- 数据分析 FAQ1
- 机器学习1
- 数据挖掘1
- NLP1
- 自然语言处理入门1
- 自然语言处理入门一对一教学1
- 中文自然语言处理入门1
- pip1
- IPython1
- 公开课1
- 上手1
- AI悦创·天池计划1
- NYU Python 辅导1
1. 决策
1.1 if 条件语句
在许多情况下,你需要根据条件做出决定。
为此,可以使用 if 语句。
例如:
x <- 24
if(x > 10){
print( "x is greater than 10")
}
Homework 8
Exercise 1: Sieve of Eratosthenes
Early in the course, we saw a few naive ways to output a list of prime numbers. Although we were able to improve the speed of the search a lot by incorporating a few arithmetic insights, it still took longer than it needed to for somewhat larger numbers.
Data analysis
For this lab you'll use dictionaries to collect statistics for a simple data file representing a collection of users. Begin by downloading the starter code and data hereLinks to an external site.
Homework 7
Exercise 1: Luhn's algorithm
Luhn’s algorithm, also known as the modulus 10 or mod 10 algorithm, is a checksum formula used to validate a variety of identification numbers, such as credit card numbers and ID numbers. You will write a program called luhn.py
that asks for an account number and determines whether or not the number is valid using Luhn’s algorithm. The steps of the algorithm are given below.
Street craps
In class we looked at a simple card game implemented using object-oriented programming. For this lab, you'll adapt that structure to create a simple dice game based on the classic signifier of misspent youth: street craps.
The rules of street craps are as follows. The shooter rolls two dice. If the first roll is 2, 3, or 12 the shooter loses. If the first roll is 7 or 11, the shooter wins. If the first roll is anything else, that value becomes the shooter's "point". The shooter continues to roll the dice until either the "point" comes up again, in which case the shooter wins, or until a 7 comes up, in which case the shooter loses.
Homework 6
Part 1: Book questions
Create a text file called hw6_book_exercises.txt
. Answer 7.7 Exercises 1 through 10 from the textbook.
Part 2: Programming exercises
Programming exercise 1: Triangular number list
This program will revisit the concept of "triangular numbers"Links to an external site. from a previous assignment. You may re-use code from your solution to that assignment if you wish.
For this lab period, please do the following exercise.
Making a rocket
For this exercise, you'll do a little more ascii art! In this exercise, you'll need to pull some of the functionality out of main()
into its own functions.
You'll write a program called make_a_rocket.py
that prints out a rocket consisting of a nose cone, a fuselage, and a tail fin structure. The program will take 2 required arguments and one optional argument. The two required arguments are numbers representing the width of the rocket in characters, and the length of the rocket's fuselage in square segments. The third argument will be either left blank (not given) or will be the word "striped". The nose cone and tail structure are composed of *
characters. The fuselage is made up of X
characters by default. If the striped
argument is passed when the program is executed, each segment of the fuselage will be drawn half with X
s and half with _
characters, resulting in a striped appearance.
Homework 5
Water Consumption
This week you'll write a program that performs some analysis on actual, real-life data! My friend Brad moved into a new house — one that has a device that monitors how much electricity is used. Once a minute, it records the power usage on each of the electrical circuits in the house. The water comes from a well, and it dawned on him that he could calculate how much water the house is using by looking at the power data.
For lab 5, please do the following exercise
Word & character counter
Download the text file from hereLinks to an external site.. You'll write a program called word_count.py
that prompts the user for a file name, then prints out counts of words, non-whitespace characters (including punctuation), and alphanumeric characters (letters and numbers, excluding punctuation), like this:
Part 1: Book questions
Create a text file called hw4_book_exercises.txt
. Answer 5.9 Exercises 1 through 5, and 13 from the textbook.
Part 2: Programming exercises
Programming exercise 1: Triangular numbers
Write a program called triangular.py
that takes a number as an argument when the program is run and prints out the "triangular number"Links to an external site. of the input number (i.e., the sum of values between 1 and the input number).