Web
Images
Videos
Academic
Dict
Maps
More
Flights
Notebook
Python3
Sample Sentence
Definition:
All
All
Category:
All
All
,
Oral
Oral
,
Written
Written
,
Title
Title
,
Technical
Technical
Source:
All
All
,
Dictionary
Dictionary
,
Web
Web
Difficulty:
All
All
,
Easy
Easy
,
Middle
Middle
,
Hard
Hard
More sentence filters
Hide sentence filters
1.
In Python 3
.
0
all
strings are unicode (str is
now
unicode
string
)
and
there is
a
new
type
called
bytes
to
hold
byte
sequences
.
在
Python3.0
之中
,
所有
的
字符串
都
是
unicode
的
(
str
就是
unicode
字符串
)
,
并
引入
了
一个
叫做
bytes
的
新
类型
来
处理
字节
序列
。
zài
Python sān . líng
zhī zhōng
,
suǒ yǒu
de
zì fú chuàn
dōu
shì
unicode
de
(
str
jiù shì
unicode
zì fú chuàn
)
,
bìng
yǐn rù
le
yī gè
jiào zuò
bytes
de
xīn
lèi xíng
lái
chǔ lǐ
zì jié
xù liè
。
www.infoq.com
2.
This
style is
somewhat
inflexible
,
so
Python
3
introduces
a
new
way
of
doing
string
formatting
.
这种
格式化
多少有些
不灵活
,
所以
Python3
引入
了
一种
新
的
进行
字符串
格式
化
的
方式
(
版本
3
保留
了
%
操作符
和
string.Template
模块
)
。
zhè zhǒng
gé shì huà
duō shǎo yǒu xiē
bù líng huó
,
suǒ yǐ
Python sān
yǐn rù
le
yī zhǒng
xīn
de
jìn xíng
zì fú chuàn
gé shì
huà
de
fāng shì
(
bǎn běn
sān
bǎo liú
le
bǎi fēn hào
cāo zuò fú
hé
string.Template
mó kuài
)
。
www.ibm.com
3.
Python 3
.
0
breaks
the
backward
compatibility
with
previous
versions
of
the language.
Python3.0
打破
了
与
旧
有
版本
的
向后
兼容性
。
Python sān . líng
dǎ pò
le
yǔ
jiù
yǒu
bǎn běn
de
xiàng hòu
jiān róng xìng
。
www.infoq.com
4.
Python 3
now
supports
a
type
hierarchy
of
ABCs
that
represent
numeric
classes
.
Python3
现
支持
能
代表
数值
类
的
ABC
的
类型
层次结构
。
Python sān
xiàn
zhī chí
néng
dài biǎo
shù zhí
lèi
de
ABC
de
lèi xíng
céng cì jié gòu
。
www.ibm.com
5.
I
learned
a lot
about
comprehensions
from
these
chapters
that
made
me
wish
I
used
Python 3
more
.
我
从
这
两
章
中
学习
了
很多
关于
comprehension
的
知识
,
这
使得
我
更
希望
多
用
Python3
。
wǒ
cóng
zhè
liǎng
zhāng
zhōng
xué xí
le
hěn duō
guān yú
comprehension
de
zhī shi
,
zhè
shǐ de
wǒ
gèng
xī wàng
duō
yòng
Python sān
。
article.yeeyan.org
6.
The
reason
we are
waiting
for
2
.
6
is
that the
tools
for
migrating
from Python
2
to
Python 3
require
2. 6
as
a staring
point
.
之所以
等待
2.6
的
发布
是
因为
用于
将
Python2
移植
到
Python3
上
的
工具
需要
2.6
作为
起始
点
。
zhī suǒ yǐ
děng dài
èr diǎn liù
de
fā bù
shì
yīn wèi
yòng yú
jiāng
Python èr
yí zhí
dào
Python sān
shàng
de
gōng jù
xū yào
èr diǎn liù
zuò wéi
qǐ shǐ
diǎn
。
www.infoq.com
zproxy.org