新西兰服务器

[python]数字编程练习


[python]数字编程练习

发布时间:2020-08-06 14:08:10 来源:网络 阅读:159 作者:望天儿先生 栏目:编程语言

1
age=23
print("happy "+str(age)+"rd birthday!") ##将变量的int转换查str字符串格式

2
print(3+5)
print(10-2)
print(2*4)
print(16/2)

3
favorite_num= 10
print("my favorite number is "+str(favorite_num) )

[微信提示:高防服务器能助您降低 IT 成本,提升运维效率,使您更专注于核心业务创新。

[图文来源于网络,不代表本站立场,如有侵权,请联系高防服务器网删除]
[