Commit 4c516d5c by BellCodeEditor

auto save

parent c757a623
Showing with 37 additions and 19 deletions
# 这是悟空为花果山小猴做臂力测试的程序代码
name=input('你叫啥名啊?')
power=int(input('你臂力多少啊?'))
list_hero=['猴三',10,'猴一',21,'猴五',22,'猴队长',29,'猴七',30]
for i in range(len(list_hero)):
if i%2==1 and list_hero[i]>=power:
list_hero.insert(i-1,name)
list_hero.insert(i,power)
break
print(list_hero)
# 请注释掉上面的代码,并在下一行创建一个名为dict_hero的字典
dict_hero=
print(dict_hero)
import random
key="abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了!"
message="诺依,周末一起去看动漫展吧!"
key_message=""
for i in message:
str1=i
str2=random.choice(key)
str3=random.choice(key)
text=str1+str2+str3
key_message=key_message+text
list_message=list(key_message)
list_message.insert(5,noise)
result_message="/".join(list_message)
print(result_message)
\ No newline at end of file
name=input()
power=input(int())
hero=['伊惹',22,'小石头',33,'宋余杭',44,'裴锦红',55,'领爷',66,'段程',88]
input("name")
input("bl")
for i in range(len(hero)):
if i%2 == 1 and hero[i] >= power:
hero.insert(i-1,name)
hero.insert(i,power)
break
print(hero)
weather1={'上海':15,'广州':20,'深圳':40}
weather2={'上海':17,'广州':29,'深圳':23}
weather3={'上海':10,'广州':56,'深圳':100}
weather = {'梦泪': weather1, '国服': weather2,'名刀':weather3}
while True
# 直接运行以下代码,说说你的发现:
list_hero=['赵一',30,'丁二',37,'孙五',52,'王猛',89,'周亮',98]
dict_hero = {'赵一':30,'丁二':37,'孙五':52,'王猛':89,'周亮':98}
print(len(list_hero))
print(len(dict_hero))
\ No newline at end of file
i=99999999999999999999
for i in range(9999999):
i=i*2
print(i)
\ No newline at end of file
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