eval不接受关键字参数
eval的作用,是去掉字符串外面的引号。
12345678910111213141516>>> a=input()1>>> a'1'>>> eval(a=input())1Traceback (most recent call last): File "<stdin>", line 1, in <module>TypeError: eval() takes no keyword arguments>>> eval(input())11>>> b=eval(input())1>>> b1
弱德之美
“弱德不是弱者,弱者只趴在那里挨打。弱德就是你承受,你坚持,你还要有你自己的一种操守,你要完成你自己,这种品格才是弱德。”叶嘉莹
输出 python禅定一刻
123456789101112131415161718192021>>> import thisThe Zen of Python, by Tim PetersBeautiful is better than ugly.Explicit is better than implicit.Simple is better than complex.Complex is better than complicated.Flat is better than nested.Sparse is better than dense.Readability counts.Special cases aren't special enough to break the rules.Although practicality beats purity.Errors should never pass silently.Unless explicitly silenced.In the face of ambiguity, refuse the temptation to gu ...
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick StartCreate a new post1$ hexo new "My New Post"
More info: Writing
Run server1$ hexo server
More info: Server
Generate static files1$ hexo generate
More info: Generating
Deploy to remote sites1$ hexo deploy
More info: Deployment