Yuqiang Xie


  • Home

  • About

  • Tags

  • Categories

  • Search

Learn python with socratica [My notes] - part 13- Dictionary in Python

Posted on 2018-12-11 | In Learn python with socratica

Lesson 15

Introduction

在计算机科学中,有一种数据结构叫关联数组(associative array),也就做映射(map)。在python中,这个数据结构被定义为字典(dictionary)。当你的数据需要以key-value(key:input -map-> value:output)的格式处理时,就需要字典。

Read more »

Learn python with socratica [My notes] - part 12- Lists in Python

Posted on 2018-11-26 | In Learn python with socratica

Lesson 14

List[序列]是Python中最基本的数据结构。序列中的每个元素都分配一个数字,即它的位置,或着称为索引,第一个索引是0,第二个索引是1,依此类推。本节讲述如何创建一个List,并且规范化这个过程。

Read more »

Learn python with socratica [My notes] - part 11- Sets in Python

Posted on 2018-11-21 | In Learn python with socratica

Lesson 13

在Python中,数据结构形式有很多,包括:Set、List、Tuple和Dictionary。本节详细介绍一下Set,我们先新建一个set集合,用dir()得到它能使用的函数。

Read more »

Learn python with socratica [My notes] - part 10- Functions

Posted on 2018-11-14 | In Learn python with socratica

Lesson 12

编程是会遇到逻辑重复的情况,通俗的讲,就是一个代码块可能会有多处要用到。这个时候,就需要函数了。

Read more »

Learn python with socratica [My notes] - part 9- If/Then/Else

Posted on 2018-11-14 | In Learn python with socratica

Lesson 11

写代码当时候,避免不了的就是循环结构,如果到flag条件,则执行,如果到跳转条件,则跳转到另一个块继续执行。关键词:if,else,then。

Read more »
12345
IndexFziQ

IndexFziQ

I'm a PhD student in NLP at IIE, CAS. I blog about NLP and Python.

25 posts
10 categories
28 tags
GitHub E-Mail Instagram
© 2021 IndexFziQ
Powered by Hexo
|
Theme — NexT.Mist v5.1.4
访客数 人 总访问量 次