跟老齐学Python之print详解
eval()
在print干事情之前,先看看这个东东。不是没有用,因为说不定某些时候要用到。
>>>help(eval) #这个是一招鲜,凡是不理解怎么用,就用这个看文档
Helponbuilt-infunctionevalinmodule__builtin__:
eval(...) eval(source[,globals[,locals]])->value
Evaluatethesourceinthecontextofglobalsandlocals. ThesourcemaybeastringrepresentingaPythonexpression oracodeobjectasreturnedbycompile(). Theglobalsmustbeadictionaryandlocalscanbeanymapping, defaultingtothecurrentglobalsandlocals. Ifonlyglobalsisgiven,localsdefaultstoit.
热门推荐
10 分手的祝福语女生简短
11 心理考试祝福语结婚简短
12 同事孩子上学祝福语简短
13 新婚祝福语英语简短精辟
14 传统正版婚礼祝福语简短
15 接到英文简短老师祝福语
16 节日结束祝福语简短的
17 大哥添孙子简短祝福语
18 小班老师六一祝福语简短