CS 61 A (Part 3)

CS 61 A (Part 3)

Untitled

1
2
3
4
5
6
7
8
9
10
11
12
13
14
>>> 2
2
>>> print(2)
2
>>> 'hello'
'hello'
>>> print('hello')
hello
>>>
>>> None
>>>
>>> print(None)
None
>>>

None 什么都不会输出

1
2
3
4
5
6
7
>>> x=print(1)
1
>>> x
>>>
>>> print(x)
None
>>>

print 返回的是none

Untitled

Untitled

Untitled

Untitled

Untitled

Untitled

Untitled

Untitled

Untitled

Untitled

Untitled

Untitled

Untitled

Untitled

Untitled

使用搜索:谷歌必应百度