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
8d7a5489
authored
Feb 19, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
b131ab60
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
biancheng.py
biancheng.py
View file @
8d7a5489
...
...
@@ -195,6 +195,8 @@ if f:
'''
12#此次编程大赛中,获得一等奖的同学有:小张、小王、小强、小李、小周、小芳、小兰,编程实现输入某个名字进行查找,是否在一等奖的名单里
'''
'''
one_grade = ["小张","小王","小强","小李","小周","小芳","小兰"]
name = input("请输入姓名:")
if name in one_grade:
...
...
@@ -229,6 +231,8 @@ else:
'''
#猜数游戏 :小明的实际年龄是11岁,让用户来猜,会提示猜的年龄大了还是小了,
'''
'''
age = int(input("请输入年龄:"))
while True:
if age == 11:
...
...
@@ -244,6 +248,8 @@ print("猜对了!")
'''
#任意说一段字符串,找出重复次数最多的字符,并统计这个字符出现的次数。
'''
'''
n = input("请输入一段字符串:")
x = 1
for i in range(0,len(n)):
...
...
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