小编use*_*959的帖子

Python连接字符串和函数

Python中有没有办法捕捉字符串和函数?

例如

def myFunction():
    a=(str(local_time[0]))
    return a

b="MyFunction"+myFunction
Run Code Online (Sandbox Code Playgroud)

我得到一个错误,我无法连接'str'和'function'对象.

python string function

5
推荐指数
2
解决办法
8507
查看次数

标签 统计

function ×1

python ×1

string ×1