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

 #模块

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 (python3中不使用) 

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

 

  

posted @ 2017-09-03 09:35  不可叽叽歪歪  阅读(120)  评论(0编辑  收藏  举报