Commit 013d3e77 by BellCodeEditor

auto save

parent 148c9e1f
Showing with 42 additions and 3 deletions
...@@ -4,3 +4,6 @@ print(list(a)) ...@@ -4,3 +4,6 @@ print(list(a))
c=list(a) c=list(a)
b=''.join(c) b=''.join(c)
print(len(b)) print(len(b))
str1="本节课我们学习文字加密"
str2="用python进行"
print(str1[:7]+str2+str1[7:])
\ No newline at end of file
a="python" count =0
print(list(a)) while True:
\ No newline at end of file print("count的值为:"+str(count))
if count ==5:
count =0
while True:
count+=1
if count ==5:
continue
if count ==10:
break
print("count的值为:"+str(count))
import random
a=0
b=0
c=0
for i in range(3000):
x=random.randint(8,10)
if x==8:
a+=1
if x==9:
b+=1
if x==10:
c+=1
print(a,b,c)
a={'第一格':'猪八戒'}
a['第一格']='唐三藏'
a['第二格']='假行者'
a['第三格']='沙和尚'
a['第四格']='猪八戒'
print(a)
print(a['第四格'])
dict={'name';'小明'}
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