Skip to content
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

Merged
merged 9 commits into from
Dec 24, 2023
Merged

Homework #125

merged 9 commits into from
Dec 24, 2023

Conversation

zoujing23
Copy link

No description provided.

@iphysresearch
Copy link
Owner

Good Job!!! @zoujing23

Python homework:

  • Total questions: 108
  • Correct answers: 96
  • Score: 88.00%

Numpy homework:

  • Total questions: 10
  • Correct answers: 10
  • Score: 100.00%

Pandas homework:

  • Total questions: 12
  • Correct answers: 7
  • Score: 58.00%

@iphysresearch
Copy link
Owner

Good Job!!! @zoujing23

Python homework:

  • Total questions: 108
  • Correct answers: 108
  • Score: 100.00%

Numpy homework:

  • Total questions: 10
  • Correct answers: 10
  • Score: 100.00%

Pandas homework:

  • Total questions: 12
  • Correct answers: 7
  • Score: 58.00%

@iphysresearch
Copy link
Owner

Good Job!!! @zoujing23

Python homework:

  • Total questions: 108
  • Correct answers: 108
  • Score: 100.00%

Numpy homework:

  • Total questions: 10
  • Correct answers: 10
  • Score: 100.00%

Pandas homework:

  • Total questions: 12
  • Correct answers: 12
  • Score: 100.00%

@iphysresearch
Copy link
Owner

Good Job!!! @zoujing23

Python homework:

  • Total questions: 108
  • Correct answers: 108
  • Score: 100.00%

Numpy homework:

  • Total questions: 10
  • Correct answers: 10
  • Score: 100.00%

Pandas homework:

  • Total questions: 12
  • Correct answers: 12
  • Score: 100.00%

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@iphysresearch
Copy link
Owner

Good Job!!! @zoujing23

Python homework:

  • Total questions: 108
  • Correct answers: 108
  • Score: 100.00%

Numpy homework:

  • Total questions: 10
  • Correct answers: 10
  • Score: 100.00%

Pandas homework:

  • Total questions: 12
  • Correct answers: 12
  • Score: 100.00%

Copy link
Owner

@iphysresearch iphysresearch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zoujing23

作业做得很好!建议把 2023/homework_python.txt 从你的PR中删掉吧,保持你的修改文件都在你的个人作业目录中。
另外,python 扩展作业也做一做哈?

@zoujing23 zoujing23 reopened this Dec 16, 2023
@iphysresearch
Copy link
Owner

Good Job!!! @zoujing23

1 similar comment
@iphysresearch
Copy link
Owner

Good Job!!! @zoujing23

@zoujing23
Copy link
Author

zoujing23 commented Dec 20, 2023

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

Copy link
Owner

@iphysresearch iphysresearch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ljq2088
恭喜你完成Python编程基础+扩展作业和数据可视化作业!
你的姓名我没有在微信群里找到?方便告知我一下么?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seaborn 作业完成!

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

邹靓-国科大

@iphysresearch
Copy link
Owner

@zoujing23
恭喜【邹靓-国科大】完成Python编程基础+扩展作业和全部的数据可视化作业!

@iphysresearch iphysresearch merged commit 9b62465 into iphysresearch:homework Dec 24, 2023
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants