我认为Python没有Perl的直接等价物,对吗 __END__ ?
__END__
print "Perl...\n"; __END__ End of code. I can put anything I want here.
我想到的一个想法是使用三重引号的字符串。有没有更好的方法在Python中实现这一点?
print "Python..." """ End of code. I can put anything I want here. """