12 2018 档案

摘要:#计算器def add(x,y): return x+ydef minus(x,y): return x-ydef mult(x,y): return x*ydef divi(x,y): return x/ydef get_on(s): if s=='加'or s=='+': return add 阅读全文
posted @ 2018-12-20 23:23 把错误挂在墙上 阅读(397) 评论(0) 推荐(0)
摘要:函数调用方式、Python 阅读全文
posted @ 2018-12-18 22:27 把错误挂在墙上 阅读(289) 评论(0) 推荐(0)
摘要:#常用函数 input("提示字符串") --从标准输入设备上读取一个字符串,末尾的换行符会被删除 print(value,...,sep=' ',end='\n',file=sys.stdout,flush=False) --输出函数,可接收多个字符串,用逗号“,”分隔 -file :流对象,默认 阅读全文
posted @ 2018-12-02 23:49 把错误挂在墙上 阅读(260) 评论(0) 推荐(0)