KiRaSmile
all right?

KiRaSmile's Blog

摸鱼
Python键盘输入转换为列表
c=0 input_lines = input() input_lines2 = input()#由键盘输入 list = input_lines2.split(" ") #split(“”)函数的参数可以是任何分隔符,包括(a,b,c….;1,2,3…;%,!,*,空格) list = [int(list[i]) for i in range(len(list))] #for循环,把每个字符转成int值 for a in list:#判断列表list内的数值 if a > 5: c+=1 print(c)

我的第一篇博客

下雨啦,体育课可以摸鱼啦


Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. Quick StartCreate a new post1$ hexo new "My New Post" More info: Writing Run server1$ hexo server More in ...