首页 > 编程语言 > 详细

python基础学习笔记——Python基础教程(第2版 修订版)第一章

时间:2017-09-03 10:53:36      阅读:201      评论:0      收藏:0      [点我收藏+]

 #模块

import math
math.floor(9from math import sqrt
sqrt(9)    #无需使用前缀
import cmath
cmath.sqrt(-1) #不能使用from...inport

#转义和单双引号

>>>“\"hello,word\"she said"
       "hello,word"she said‘ #使用print不显示引号

#拼接字符串  +

#输入 input raw_input  

name=input("what is you name?")
print("hello,"+name+"")

 

  

python基础学习笔记——Python基础教程(第2版 修订版)第一章

原文:http://www.cnblogs.com/realmonkeykingsun/p/7468807.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!