Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson14_1
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
6ef32cfd
authored
Feb 22, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
a647382d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
biancheng.py
biancheng.py
View file @
6ef32cfd
'''
'''
1、知识点:列表切片+变量+range()
1
√
、知识点:列表切片+变量+range()
文本次数识别器:要求:
文本次数识别器:要求:
编写—段程序,可以自动识别特定文本在某一段文字中出现的次数。例如:
编写—段程序,可以自动识别特定文本在某一段文字中出现的次数。例如:
程序开始运行后,输入—段包含有一个或多个"Python”字符串的文字;
程序开始运行后,输入—段包含有一个或多个"Python”字符串的文字;
...
@@ -41,7 +41,7 @@ print("应该支付费用为:","%.2f"%fee)
...
@@ -41,7 +41,7 @@ print("应该支付费用为:","%.2f"%fee)
'''
'''
'''
'''
3、假设10位评委的打分是
3
√
、假设10位评委的打分是
99,80,86,89,94,92,75,87,86,95
99,80,86,89,94,92,75,87,86,95
现需要运用Python语言进行编程实现:去掉一个最高分,去掉一个最低分,计算平均分,并打印出来。
现需要运用Python语言进行编程实现:去掉一个最高分,去掉一个最低分,计算平均分,并打印出来。
打印格式为:去掉―个最高分:XX分,去掉―个最低分:XX分,最后得分为:XX分
打印格式为:去掉―个最高分:XX分,去掉―个最低分:XX分,最后得分为:XX分
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment