码迷,mamicode.com
首页 > 编程语言 > 详细

我已经喜欢上了Python

时间:2015-01-09 00:06:22      阅读:259      评论:0      收藏:0      [点我收藏+]

标签:

早就听说了Python语言,今天试了试,挺喜欢她了。

Python 3.4.2 (v3.4.2:ab2c023a9432, Oct 6 2014, 22:15:05) [MSC v.1600 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> ================================ RESTART ================================
>>>
hello owrld
今天你的幸运随机数是: 81
2的128次方 3.402823669209385e+38

>>>
>>> aString="张三" #变量赋值
>>> print(aString) #输出变量aStrig的值
张三
>>> print("如果语句太长可以使用(\),\")

SyntaxError: EOL while scanning string literal
>>>
>>> print("如果语句太长可以使用(\),\
续航内容")
如果语句太长可以使用(\),续航内容
>>>

我已经喜欢上了Python

标签:

原文地址:http://www.cnblogs.com/jiurusoft/p/4212035.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!