![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
编程基础
samanthamao
这个作者很懒,什么都没留下…
展开
-
python基础作业
最近开始学习机器学习和NLP,先打好python基本功,今天做了几道题,记录一下~~ 1 对列表 ls=[2, 6,20,0,-2]进行排序(正序和逆序),并找到最大值及其位置; ls=[2,6,20,0,-2] temp=ls[0] for i in ls: if(i>temp): temp=i index=ls.index(temp) ls....原创 2018-10-29 20:08:04 · 310 阅读 · 0 评论 -
python:1:、Variables and Data Types
一、Variables and Data Types 1.1Assign the value 5 to a, and value 6 to b. Assign the value of a + b to variable c a =5 b =6 c =a+b print(a) print(b) print(c) 1.2[MCQ] Which of the following will p...原创 2019-02-10 17:36:57 · 299 阅读 · 0 评论