摘要:        
Lecture 5 命令行环境 课后练习 任务控制 我们可以使用类似 ps aux | grep 这样的命令来获取任务的 pid ,然后您可以基于pid 来结束这些进程。但我们其实有更好的方法来做这件事。在终端中执行 sleep 10000 这个任务。然后用 Ctrl-Z 将其切换到后台并使用 bg    阅读全文
posted @ 2024-01-03 20:05
viewoverlook
阅读(39)
评论(0)
推荐(0)
        
            
        
        
摘要:        
Lecture 4 数据整理 练习 学习一下这篇简短的 交互式正则表达式教程. 统计words文件 (/usr/share/dict/words) 中包含至少三个a 且不以's 结尾的单词个数。这些单词中,出现频率前三的末尾两个字母是什么? sed的 y命令,或者 tr 程序也许可以帮你解决大小写的    阅读全文
posted @ 2024-01-03 20:04
viewoverlook
阅读(17)
评论(0)
推荐(0)
        
            
        
        
摘要:        
Lecture 3 vim 完成 vimtutor。 备注: 它在一个 80x24(80 列,24 行) 终端窗口看起来最好。 直接执行 vimtutor 下载我们的vimrc,然后把它保存到 ~/.vimrc。 通读这个注释详细的文件 (用 Vim!), 然后观察 Vim 在这个新的设置下看起来和    阅读全文
posted @ 2024-01-03 20:04
viewoverlook
阅读(20)
评论(0)
推荐(0)
        
            
        
        
摘要:        
Lecture 2 Shell Tools and Scripting homework: 1.Read man ls and write an ls command that lists files in the following manner 读取 man ls 并编写按以下方式列出文件的 l    阅读全文
posted @ 2024-01-03 20:04
viewoverlook
阅读(23)
评论(0)
推荐(0)
        
            
        
        
摘要:        
Streams Sequence Operations Map, filter, and reduce express sequence manipulation using compact expressions Example: Sum all primes in an interval fro    阅读全文
posted @ 2024-01-03 20:03
viewoverlook
阅读(13)
评论(0)
推荐(0)
        
            
        
        
摘要:        
Scheme scheme fundamentals scheme programs consist of expressions, which can be: primitive expression: 2, 3.3, true, +, quotient …… combination: (quti    阅读全文
posted @ 2024-01-03 20:03
viewoverlook
阅读(51)
评论(0)
推荐(0)
        
            
        
        
摘要:        
Higher Order Funcrtions 让我们做一个功能组合 >>> def combine_funcs(op): >>> """combine funcs(OP)(f,g)(x)=OP(f(x),g(x))""" >>> def combine(f,g): >>> def val(x):     阅读全文
posted @ 2024-01-03 20:01
viewoverlook
阅读(11)
评论(0)
推荐(0)
        
            
        
        
摘要:        
Debugging Assert def fact(x): if x==0: return 1 else: return x*fact(x-1) def half_fact(x) return fact(x/2) 当按照以下调用时half_fact(5)时传入fact中的是一个非整数,不会出发ret    阅读全文
posted @ 2024-01-03 20:00
viewoverlook
阅读(12)
评论(0)
推荐(0)
        
            
        
        
摘要:        
Control Print and None 区分python中两种类型的函数 纯函数(pure functions): 函数中有一些输入(参数)并返回一些输出(调用返回结果) abs(-2) 可将内置函数abs描述为接受输入并产生输出的小型机器 abs在调用时除了返回值外不会造成其他任何影响,而且    阅读全文
posted @ 2024-01-03 20:00
viewoverlook
阅读(31)
评论(0)
推荐(0)
        
            
        
        
摘要:        
Chapter 2 Building Abstract ions with Data Native Data Types 到目前为止,我们使用的值都是 Python 语言中内置的少量的原始数据类型的实例。原始数据类型具有以下属性: ^13b410 有一些可以求解为原始数据类型的表达式,被称为字面量(    阅读全文
posted @ 2024-01-03 19:59
viewoverlook
阅读(18)
评论(0)
推荐(0)
        
            
        
        
摘要:        
4_3 Declarative Programming In addition to streams, data values are often stored in large repositories called databases. A database consists of a data    阅读全文
posted @ 2024-01-03 19:59
viewoverlook
阅读(47)
评论(0)
推荐(0)
        
            
        
        
摘要:        
3_5 Interpreters for Languages with Abstraction The Calculator language provides a means of combination through nested call expressions. However, ther    阅读全文
posted @ 2024-01-03 19:59
viewoverlook
阅读(34)
评论(0)
推荐(0)
        
            
        
        
摘要:        
2_9 Recursive Objects Objects can have other objects as attribute values. When an object of some class has an attribute value of that same class, it i    阅读全文
posted @ 2024-01-03 19:58
viewoverlook
阅读(12)
评论(0)
推荐(0)
        
            
        
        
摘要:        
2_7 Object Abstraction The object system allows programmers to build and use abstract data representations efficiently. It is also designed to allow m    阅读全文
posted @ 2024-01-03 19:58
viewoverlook
阅读(38)
评论(0)
推荐(0)
        
            
        
        
摘要:        
2_5 Object-Oriented Programming Object-oriented programming (OOP) is a method for organizing programs that brings together many of the ideas introduce    阅读全文
posted @ 2024-01-03 19:58
viewoverlook
阅读(42)
评论(0)
推荐(0)
        
            
        
        
摘要:        
lecture9 Welcome! Static to Dynamic Flask Layout POST Frosh IMs Flask and SQL Session Store API JSON Summing Up Welcome! In previous weeks, you have l    阅读全文
posted @ 2024-01-03 19:56
viewoverlook
阅读(28)
评论(0)
推荐(0)
        
            
        
        
摘要:        
lecture8 Routers 为了将数据从一个地方转到另一个地方,我们需要做转发决定,也就是说需要某人来决定将数据转发到哪里。这个人就是路由器。 TCP/IP 是两个协议,允许计算机间数据在网上传输。 IP 是 Internet Protocol 的缩写,它是一种协议,它定义了如何将数据从一个计    阅读全文
posted @ 2024-01-03 19:56
viewoverlook
阅读(7)
评论(0)
推荐(0)
        
            
        
        
摘要:        
lecture7 Flat-File Database 数据常常可以视作表格,每一行是一个记录,每一列是一个属性 电子表格例如Excel,Google Spreadsheet可以导出为csv格式文件。csv文件是纯文本文件,每一行是一个记录,每一列用逗号分隔,可以看作是最简单的数据库 csv文件被称    阅读全文
posted @ 2024-01-03 19:55
viewoverlook
阅读(31)
评论(0)
推荐(0)
        
            
        
        
摘要:        
lecture5 Queues are one form of abstract data structure. Queues have specific properties. Namely, they are FIFO or “first in first out.” You can imagi    阅读全文
posted @ 2024-01-03 19:55
viewoverlook
阅读(6)
评论(0)
推荐(0)
        
            
        
        
摘要:        
lecture6 Welcome! Python Hello Types Speller Image Recognition CS50 Library Conditionals Variables Loops Calculator Compare Object-Oriented Programmin    阅读全文
posted @ 2024-01-03 19:52
viewoverlook
阅读(16)
评论(0)
推荐(0)
        

浙公网安备 33010602011771号