Python Standard Library Flashcards

1
Q

Functions relating to files and file paths.

把许多文件和文件路径联系起来的函数。

A

os.path

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Save and load object to/from a file.

保存对象到一个文件中去,从一个文件加载对象。

A

pickle

cPickle

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Various functions relating to random numbers.

各种关联到随机数的函数。

A

random

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Stuff relating to strings.

与字符串有关的东西。

A

String

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Various functions related to your computer system.

与你的电脑系统有关的各种函数。

A

sys

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Time-related functions.

与时间有关的函数。

A

Time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

User interface widgets and associated constants.

用户界面挂件并与常量有关系。

A

Tkinter

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Python can do fractions, use a Fraction object, specifying the numerator and denominator.

A

fractions.Fraction(numerator, denominator)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly