-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Homework #125
Homework #125
Conversation
Good Job!!! @zoujing23Python homework:
Numpy homework:
Pandas homework:
|
new answer
Good Job!!! @zoujing23Python homework:
Numpy homework:
Pandas homework:
|
new answer
Good Job!!! @zoujing23Python homework:
Numpy homework:
Pandas homework:
|
Good Job!!! @zoujing23Python homework:
Numpy homework:
Pandas homework:
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Good Job!!! @zoujing23Python homework:
Numpy homework:
Pandas homework:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
作业做得很好!建议把 2023/homework_python.txt
从你的PR中删掉吧,保持你的修改文件都在你的个人作业目录中。
另外,python 扩展作业也做一做哈?
Good Job!!! @zoujing23 |
1 similar comment
Good Job!!! @zoujing23 |
434#将不是字母的字符换成空格
for x in s:
if x.isalpha():
continue
else:
s=s.replace(x,' ')
#分割字符串,将其储存为列表
l=s.split()
print(len(l))#输出字符的个数
print('The',len(l),'segments are',l) 1869#初始化a,b用于储存1,0的个数 a=0
b=0
#遍历字符串,分别找到1和0的个数
for i in [0,len(s)-1]:
if s[i]=='1':
a=a+1
else:
b=b+1
#对比a,b的大小后输出True or Flase
if a>b:
print('True')
else:
print('Flase') 1784#遍历字符串,找到1后若下一个仍是1则直接输出true,否则输出flase
for i in [0,len(s)-1]:
if s[i]=='1' and s[i+1]=='1':
print('true')
else:
print('flase') 852#l为第一个数字的位置,r为最后一个数字的位置
l, r = 0, len(A)-1
#直接用二分法取最中间的位置作为开始循环的起点
while l<r:
mid = (l+r)//2
if A[mid] > A[mid+1]:
r= mid
#每一次失败都将第一个数字的位置往后挪一位,直到找到peak为止
else:
l= mid + 1
print(l) 162#peak即为数组中最大值 #遍历所有元素,打印出最大值所在的位置
for i in [0,len(A)-1]:
if len[i]==max(A):
print(i)
else:
break |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ljq2088
恭喜你完成Python编程基础+扩展作业和数据可视化作业!
你的姓名我没有在微信群里找到?方便告知我一下么?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seaborn 作业完成!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
邹靓-国科大
@zoujing23 |
No description provided.