我试图将文件中的字符( ex A)替换为一组字符,如NC@@(C)C(=O)O,我编写的代码是:
# Read in the file
with open('C:/in.txt', 'rt') as file :
filedata = file.read()
# Replace the character with coresponding code
filedata = filedata.replace('A','N[C@@]([H])(C)C(=O)O')
filedata = filedata.replace(
我如何循环成两个数组并创建来自statArr和typeArr两个数组的字符串输出,并附加一些AND & OR操作符?
我希望得到的输出是
stat = 'Closed' AND type = 'RD' OR
stat = 'Closed' AND type = 'WW' OR
stat = 'Closed' AND type = 'CC' OR
stat = 'Closed' AND type = 'MB' OR
stat = 'Closed'
我正在使用免费的.co.cc域名。
我用那个域名来启用facebook的auth。但是当我运行我的脚本时,它会重定向到facebook并显示错误:
Error
This URL Is Blocked: The URL "http://xxxxxxxxx.cu.cc/hybridauth/?hauth.done=Facebook"
has been blocked from Facebook.
所以我想知道,facebook的URL是这样的吗?为什么?这是我的免费域名或脚本的问题吗?
我要用杂交瘤来解决这个问题。它适用于每一件事,但不适用于facebook登录。