随笔分类 -  Python

摘要:方法一:单引号 'http' 方法二:双引号 "http" 方法三:三引号 """http""" 输出单引号:"let's go" 输出双引号:'she say "yes使用转移符"\" >>>print('she said "yes! let\'s go"') >>>print("she said 阅读全文
posted @ 2016-07-30 10:03 YunMan 阅读(177) 评论(0) 推荐(0)
摘要:加法:+ 减法:- 除法:/ 乘法:* 整除:// 求余:% 乘方:** 浮点数计算当结果过长会导致溢出报错 导入模块: 方法一:>>>import math 但这种方法使用时要加上模块名,如:>>>math.sqrt(5) 方法二:>>>from nath import* 使用方法:>>>sqrt 阅读全文
posted @ 2016-07-30 09:53 YunMan 阅读(289) 评论(0) 推荐(0)