Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

bellcode / lesson12-1

  • This project
    • Loading...
  • Sign in
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 26bf721d authored 3 years ago by BellCodeEditor's avatar BellCodeEditor
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

auto save

parent 7e9f8f47
Hide whitespace changes
Inline Side-by-side
Showing with 25 additions and 3 deletions
  • 1.py
  • diy.py
  • tsxt.docx
1.py 0 → 100644
View file @ 26bf721d
"""
a=input("水果")
print(a)
ls=a.split()
print(ls)
d={}
for i in ls:
d[i]=d.get(i,0)+1
print(d)
ls=list(d.items())
print(ls)
ls.sort(key=lambda func:func[1],reverse=True)
print(ls)
"""
ls=[51,33,54,56,67,88,431,141,72,45,2,78,13,15,5,69]
ls1=[]
for i in range(len(ls)):
for j in range(2,ls[i]):
if ls[i]%j==0:
ls1.append(ls[i])
break
print(ls1)
\ No newline at end of file
This diff is collapsed. Click to expand it.
diy.py
View file @ 26bf721d
filel = open() filel = open(r'Users/teng')
filel.write('小兰:12本') filel.write('小兰:12本')
filel.close() filel.close()
\ No newline at end of file
This diff is collapsed. Click to expand it.
tsxt.docx
View file @ 26bf721d
小兰:12本
\ No newline at end of file
This diff is collapsed. Click to expand it.
  • Write
  • Preview
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment