
高级编程技术作业
文章平均质量分 83
liupycsdn
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
第二次作业
3-6guest=["Tom", "Jack", "Marry"] message="I want to invite "+guest[0]+" "+guest[1]+" "+guest[2] print(message) not_come="Jack" guest.remove(not_come) print(not_come+" will not come原创 2018-03-14 19:24:39 · 134 阅读 · 0 评论 -
高级编程技术leetcode作业1
27. Remove ElementGiven an array nums and a value val, remove all instances of that value in-place and return the new length.Do not allocate extra space for another array, you must do this by modifyin...原创 2018-04-30 11:47:58 · 205 阅读 · 0 评论 -
第六次作业(第八章)
8-2def favorite_book(book): print("My favorite book is "+book) favorite_book('Alice in wonderland')8-5def describe_city(city,country): print(city+' is in '+country) describe_city('New York','Americ...原创 2018-04-01 12:31:51 · 194 阅读 · 0 评论 -
第五次作业(第七章)
7-3num=input("please input a number") num1=int(num) if num1%10==0: print(num+" can mod 10") else: print(num+" cannot mod 10 ")7-4message="Please input the ingredients of pizza:\n" message=message+...原创 2018-04-01 00:13:21 · 185 阅读 · 0 评论 -
第四次作业
5-2s1='aabbcc' s2='AAbbcc' if s1==s2: print('s1==s2') print(s1==s2) else: print('s1!=s2') print(s1==s2) if s1.lower()==s2.lower(): print('True') if 3>2: print('3>2') if 4<=5: print('4&...原创 2018-03-26 00:53:53 · 151 阅读 · 0 评论 -
第三次作业
4-2animals=['dog','cat','cow'] for animal in animals: print(animal) print('A '+animal.title()+' would make a great pet.\n') print('Any of these animals would make a great pet!\n') 4-5array=[] for va...原创 2018-03-26 00:47:35 · 179 阅读 · 0 评论 -
第八次作业(第十章)
10-1with open('learning_python.txt') as file_object: contents=file_object.read() print(contents) with open('learning_python.txt') as file_object: for line in file_object: print(line.rstrip()...原创 2018-04-08 00:34:28 · 237 阅读 · 0 评论 -
第七次作业(第九章)
9-3class User(): def __init__(self,first_name,second_name): self.first_name=first_name self.second_name=second_name def describe_user(self): print("The current customer is "+self.first_name.ti...原创 2018-04-08 00:27:41 · 272 阅读 · 0 评论 -
第二次作业
2-22-42-72-8原创 2018-03-11 13:22:19 · 186 阅读 · 0 评论 -
假如我成为一名python高手,我想实现怎样的目标
假如我熟练掌握了Python这门语言,我想利用Python做一个坦克对战这类的小游戏,虽然简单,但是对于Python这门语言的应用还是极为有助的。原创 2018-03-10 17:46:09 · 340 阅读 · 0 评论 -
第一次作业:浏览Python主页的感想
Python主页主要提供了Python语言特性的一些介绍,Python解释器的下载,以及学习Python的一些社区和书籍介绍等,通过浏览Python主页,我发现Python是一门使用起来更贴近于自然语言的一种编程语言,它使编程者更易于掌握和书写,同时python的另一强大功能便是书写简洁,通过较少而简单的语句即可达到和C/C++语言需要写较多才能达到的功能,因为Pyhton是解释型语言,所...原创 2018-03-10 17:27:18 · 233 阅读 · 0 评论 -
高级编程技术作业:numpy
高级编程技术作业:numpy9-1:from scipy.linalg import toeplitz import numpy as np n=200 m=500 a=[] for i in range(0,200): a.append(np.random.randn(m)) a=np.array(a) tempc=np.array(np.arange(m)) tempc=temp...原创 2018-05-23 18:20:58 · 676 阅读 · 0 评论