摘要: [{'x': 6, 'y': 3}, {'x': 3, 'y': 4}, {'x': 1, 'y': 2}][{'x': 1, 'y': 2}, {'x': 6, 'y': 3}, {'x': 3, 'y': 4}] 阅读全文
posted @ 2018-12-07 17:55 Winnie~ 阅读(7073) 评论(0) 推荐(0) 编辑
摘要: # 判断三角形类型def triangle(a,b,c): if a>0 and b>0 and c>0: if a+b>c and b+c>a and a+c>b: if a == b and b == c: return ("这是等边三角形") elif a == b or b == c or c =... 阅读全文
posted @ 2018-12-07 17:44 Winnie~ 阅读(8771) 评论(0) 推荐(0) 编辑
摘要: 阶乘:一个正整数的阶乘(factorial)是所有小于及等于该数的正整数的积,并且0的阶乘为1。自然数n的阶乘写作n!。 阅读全文
posted @ 2018-12-07 17:30 Winnie~ 阅读(2018) 评论(0) 推荐(0) 编辑