标签:function 变量 str com 数学 float 不可 NPU func



该类操作只能同为字符串类型,否则需要强制转换类型

(驼峰式变量名&下划线式均可)
# 注释
| print() |
print(‘Hello world!‘) print()允许传入一个整型值或字符串,不可混合,需要强制转换类型 |
| input() | myName = input() #获取字符串 |
| len() | len(myName) |
| str() | str(29) #int转换string |
| int() | |
| float() |

二元布尔操作符(用于两个布尔型或表达式)and/not/or
标签:function 变量 str com 数学 float 不可 NPU func
原文地址:https://www.cnblogs.com/desmondC/p/12078791.html