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

bellcode / lesson12-4

  • 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 34984fc1 authored 3 years ago by BellCodeEditor's avatar BellCodeEditor
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

auto save

parent a8d02629 c183952l970p219a10059/wx091114
Hide whitespace changes
Inline Side-by-side
Showing with 30 additions and 0 deletions
  • 55555555555555555.py
  • diy.py
  • e.py
  • ji.py
  • 手表.py
55555555555555555.py 0 → 100644
View file @ 34984fc1
str='我有1个超大的苹果'
print(str.replace('1','999'))
This diff is collapsed. Click to expand it.
diy.py 0 → 100644
View file @ 34984fc1
# 写入同学们的捐赠明细:'兰:12本小'、'小丽:11本'、'李文:9本'、'张伟:16o
new_date=''
with open(r'C:\Users\CHINGHUDOF\Desktop\text.txt','r',encoding='utf-8') as filel:
#filel.read()
for date in filel:
if 'l' in date:
date=date.replace('l','w')
new_date +=date
print(new_date)
with open(r'C:\Users\CHINGHUDOF\Desktop\text.txt','w',encoding='utf-8') as filel:
filel.write(new_date)
\ No newline at end of file
This diff is collapsed. Click to expand it.
e.py 0 → 100644
View file @ 34984fc1
txt='1.2.3.4.5.6.7'
wow=txt.split('.')
print(wow)
This diff is collapsed. Click to expand it.
ji.py 0 → 100644
View file @ 34984fc1
with open(r'C:\Users\CHINGHUDOF\Desktop\sales_list.txt','r',encoding='utf-8') as filel:
a=filel.readlines()
for i in a:
www=i.split()
print(www[1:])
\ No newline at end of file
This diff is collapsed. Click to expand it.
手表.py 0 → 100644
View file @ 34984fc1
a='sfkhwihfgwufhwkfuwhfwhfwiufhwuiffhuefhregjhikjhyujikoiuyuio9i8u7y7u8i9uji9kjh'
a='sfkhwihfgwufhwkfuwhfwhfwiufhwuiffhuefhregjhikjhyujikoiuyuio9i8u7y7u8i9uji9kjh'
for i in a:
print(i)
\ 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