我想知道这是哪种编程语言?

时间:2016-08-06 19:16:36

标签: output

这是什么输出?

>>>word = "positive"
>>>word[:2]

1 个答案:

答案 0 :(得分:0)

$ python
Python 2.7.10 (default, Jul 14 2015, 19:46:27) 
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> word = "positive"
>>> word[:2]
'po'