哈哈~柳暗花明
哈哈~柳暗花明
全部文章
分类
题解(115)
归档
标签
去牛客网
登录
/
注册
Renaissancer的博客
全部文章
(共75篇)
判断字母_python3
while True: try: c = input() if str.isalpha(c): print('{} is an alphabet.'.format(c)) else: print(...
2020-05-06
0
503
判断元音_python3
vowel_list = ['A', 'a', 'E', 'e', 'I', 'i', 'O', 'o', 'U', 'u'] while True: try: print('Vowel' if input() in vowel_list else 'Consonant') ...
2020-05-06
0
576
竞选社长_python3
ll=list(input()) countA = ll.count('A') countB = ll.count('B') if countA == countB: print('E') elif countA > countB: print('A') else: p...
2020-05-06
0
589
变种水仙花_python3
ll = [] for num in range(10000, 99999): sum = 0 for j in range(1, 5): sum += int(str(num)[:j])*int(str(num)[j:]) if sum == num: ...
2020-05-06
4
669
网购_python3
def discount(price, isDiscount): if isDiscount: price -= 50 return price if price > 0 else 0 while True: try: price...
2020-05-06
1
588
健康评估_python3
def isNormal(weight, high): value = weight/(high**2) return True if value >= 18.5 and value <= 23.9 else False while True: try: ...
2020-05-06
2
571
判断字母_python3
while True: try: c = input() print('YES' if str.isalpha(c) else 'NO') except EOFError: break
2020-05-06
1
729
计算三角形周长面积_python3
import math a, b, c = map(int, input().split()) p = a + b + c print('circumference={:.2f} area={:.2f}'.format(p, math.sqrt(p/2*(p/2-a)*(p/2-b)*(p/2-c)...
2020-05-06
0
583
平均成绩_python3
ll = list(map(float, input().split())) sum = 0.0 for i in ll: sum += i print('{:.2f} {:.2f}'.format(sum, sum/len(ll)))
2020-05-06
0
560
交换_python3
x, y = map(str, input().split(',')) xkey, xvalue = map(str, x.split('=')) ykey, yvalue = map(str, y.split('=')) print('{}={},{}={}'.format(xkey, yvalu...
2020-04-30
1
779
首页
上一页
1
2
3
4
5
6
7
8
下一页
末页