在Python中,如何在不调用函数的情况下以字符串形式获取函数名称? def my_function(): pass print get_function_name_as_string(my_function) # my_function is not in quotes 应该输出"my_function"。 此类功能在Python中可用吗?如果没有,关于如何get_function_name_as_string在Python中实现的任何想法?
鉴于以下HTML: <div id="container"> <!-- Other elements here --> <div id="copyright"> Copyright Foo web designs </div> </div> 运行代码段隐藏结果展开摘要 我想#copyright坚持到底#container。 不使用绝对定位就可以实现吗?如果float属性支持'bottom'的值,那似乎可以解决问题,但不幸的是,事实并非如此。