基本上我有一个span在里面p,在CSSI上有p下划线,但我似乎无法删除下划线span,你会在下面找到一些代码示例:
p{text-decoration:underline;} span{text-decoration:none;}Run Code Online (Sandbox Code Playgroud)
<p>Hello World <span> I'm spanning... </span> </p>Run Code Online (Sandbox Code Playgroud)
所有文字都有下划线.你能帮我个忙吗?
我正在尝试将函数的输出存储到Python中的文件中,我想要做的是这样的:
def test():
print("This is a Test")
file=open('Log','a')
file.write(test())
file.close()
Run Code Online (Sandbox Code Playgroud)
但是,当我这样做时,我收到此错误:
TypeError:参数1必须是字符串或只读字符缓冲区,而不是None
PD:我正在尝试为我无法修改的功能执行此操作.