收藏 分享(赏)

Python入门教程1.pdf

上传人:精品资料 文档编号:9811666 上传时间:2019-09-06 格式:PDF 页数:129 大小:1.83MB
下载 相关 举报
Python入门教程1.pdf_第1页
第1页 / 共129页
Python入门教程1.pdf_第2页
第2页 / 共129页
Python入门教程1.pdf_第3页
第3页 / 共129页
Python入门教程1.pdf_第4页
第4页 / 共129页
Python入门教程1.pdf_第5页
第5页 / 共129页
点击查看更多>>
资源描述

1、CS101: Intro to ComputingSummer 2016Week 1Administrivia Homework 1 is posted (due Friday)Administrivia iclicker Wednesday and Friday iclicker tests After that, iclicker attendance Need to register device ON COURSE COMPASS PAGEWHY ARE WE HERE?Ive seen things you people wouldnt believeEveryone should

2、program! This is my mission!Why learn to program?a. Pervasiveb. Lucrativec. Transferrabled. Creativee. Self-determinationEveryone can program Our goal is a safe, friendly, inclusive atmosphere for everyone to learn. You should feel welcome, regardless of gender, gender identity, ethnicity, nationali

3、ty, religion, disability, sexual orientation, class, political views, or educational background. We are peers and allies. Lets all treat one another with respect and kindness.Programming is a skill! Learn by doing! Learn by interacting! You need to constantly practice. Get help when you need it! WAR

4、NING: If you are not committed to this class, youre not going to make it!HOW WILL THIS CLASS WORK?Grading 20% homework 25% labs 10% lecture attendance (iclicker) 20% midterms (2) 25% final examOfficial grade book will be on CompassRequired Supplies No textbook! iclicker CodeLab accountCourse website

5、 https:/relate.cs.illinois.edu/course/SU2016CS101/ Homework assignments Course calendar Course policies Can also find it via CoE course directory https:/courses.engr.illinois.eduLabs Start tomorrow Intended to get hands on experience First learn basics of Unix command line Then learn some programmin

6、g basicsPolicies No late homework submissions All machine generated grades are final Late registrants should keep up with work No extensions or exceptions for late registration Never copy codeGetting help Piazza Be civil to peers and staff All posts containing solutions should be made private A priv

7、ilege, not a right Office hours (on RELATE) Have specific questions if you want assistanceCourse Overview 4-5 weeks: programming (Python) 2-3 weeks: engineering programming 1 week: MatlabWHAT IS PROGRAMMING?Program A set of instructions a computer executes to achieve a goal Can be very long (million

8、s of instructions) Also called “code” or “source code” Our programs will be called “scripts”Data Information stored in a computer is called data. All data is represented in binary. A series of 0s and 1s Each 0 or 1 is called a bit. Bits are stored in groups of 8 called bytes.Instructions Programs ar

9、e data. Instructions are encoded in binary. Each instruction is typically 4 or 8 bytes.Programming Language An artificial language used to communicate instructions to a computer Rigorous and unambiguous Grammar is mathematically formal Has syntax and semantics like a natural languageProgramming Lang

10、uages Low-level: add $t0, $t1, $t2 Define individual, machine readable instructions High-level: x=y+z Human readable instructions translated into machine readable instructionsHigh-level languages Compiled languages Compiler translates entire program into machine language Interpreted (scripting) Inte

11、rpreter translates program into machine language line by line Translation happens “on the fly”Python High-level language Interpreted language Strongly, dynamically typed language WARNING: Split between versions 2 and 3. We will use version 3!Why Python? Freely available Cross platform Widely adopted

12、 Well documented Designed for teaching BeautifulA set of instructions a computer executes to achieve a goal is calleda) a process.b) a program.c) a procedure.d) a pronoun.A grouping of 8 bits is calleda) a nibble.b) a chomp.c) a byte.d) a gobble.Python isa) a high-level language.b) a low-level language.Python isa) a compiled language.b) an interpreted language.

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 企业管理 > 管理学资料

本站链接:文库   一言   我酷   合作


客服QQ:2549714901微博号:道客多多官方知乎号:道客多多

经营许可证编号: 粤ICP备2021046453号世界地图

道客多多©版权所有2020-2025营业执照举报