<分区>
我在 Stack Overflow 上查看代码高尔夫问题,看到许多 Perl 单行解决方案。
在 Python 中可以实现类似的功能吗?
标签 python
<分区>
我在 Stack Overflow 上查看代码高尔夫问题,看到许多 Perl 单行解决方案。
在 Python 中可以实现类似的功能吗?
最佳答案
python -c 'print("Yes.")'
关于python - 是否可以用 Python 编写单行代码?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4005952/