自学PYTHON 坚持打卡 第一天2024.3.27

print ('hello world')
message ="you can get it"
print(message)
#message=('datacom')
#print(message)
x=message.title()
#print(x=\n,"x")
y=x.lower()
print(y)
z=y.upper()
print(f"{z=} ")
first_name=("roni")
last_name=("o'saliwen")
full_name=f"{first_name} {last_name}"
his_name= full_name.title()
print (f"hello,{his_name}")
x=' 123'
y=x.strip()
print(y)
print(x)
z=x.lstrip()
print(f"\t\t{z}")
x="pedro"
message="do you like python ?"
print(f"{x},{message}")
y=x.lower()
z=x.upper()
u=x.title()
print(f"name={x}\n{y}\n{z}\n{u}")
the_words="'go on go on!'"
print(f"{x} once said,{the_words}")
print(2+6)
print(2*4)
print(2**3)
print(64/8)
print(20-12)
X=888
message="my favorite number is "

print(f"{message}{X}".title())

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值