摘要: import mathx=10y=20'''1.数学函数'''print(abs(-1.3))#取绝对值。结果为1.3print(math.fabs(-x))#取绝对值,并以浮点型表示。结果为10.0print(math.floor(2/3))#返回数字的下舍整数。结果为0print(math.ce 阅读全文
posted @ 2017-06-28 15:09 Jason-huang 阅读(487) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: UTF-8 -*-import keywordprint("hello python!")print(keyword.kwlist)#查看python的关键字。'''#python的关键字有:#['False', 'None', 'True', 'and', 'as', 阅读全文
posted @ 2017-06-28 14:51 Jason-huang 阅读(994) 评论(0) 推荐(0) 编辑