【无标题】

第二次作业

str1 = 'itheima'
for i in str1:
 print(i)
str1 = 'itheima'
for i in str1:
 if i == 'e':
 print('遇到e不打印')
 break
 print(i)
bicycle =['jim' , 'kom' , 'tom']
bicycle.append('him')
print(bicycle ) 
#
['jim', 'kom', 'tom', 'him']
str1 = 'itheima'
for i in str1:
 if i == 'e':
 print('遇到e不打印')
 continue
 print(i)
 # 
i
t
h
遇到e不打印
i
m
a
name = "abcdef"
print(name[2])
print(name[0])
print(name[1])
#
c
a
b
name = input('请输⼊您的名字:')
print(f'您输⼊的名字是{name}')
print(type(name))
password = input('请输⼊您的密码:')
print(f'您输⼊的密码是{password}')
print(type(password))
#注释
请输⼊您的名字:tom
您输⼊的名字是tom
<class 'str'>
请输⼊您的密码:123456
您输⼊的密码是123456
<class 'str'>
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值