简体   繁体   English

alchemyAPI python sdk中意外令牌'('附近的语法错误

[英]Syntax Error near unexpected token `(' in alchemyAPI python sdk

i installed alchemyAPI with python 2.7 on the desktop and it runs perfectly but when i saved the file to a live server whenever i try running the example files on aclemy i got the error. 我在台式机上安装了带有python 2.7的alchemyAPI,它可以完美运行,但是当我每次尝试在aclemy上运行示例文件时,将文件保存到实时服务器时,我都收到了错误消息。 "Syntax Error near unexpected token `('" I checked the syntax python syntax and its okay. The syntax error is in creating the instance of the object.I want to ask if there is something wrong with the syntax. I am not an expert of AlchemyAPI in python.Thank You. “检查了意外标记'('附近的语法错误”,我检查了python语法的语法及其是否正常。语法错误是在创建对象的实例时发生的。我想问一下语法是否有问题。我不是专家python中的AlchemyAPI的代码。谢谢。

# Load the AlchemyAPI module code.
import AlchemyAPI            
# Create an AlchemyAPI object.
alchemyObj = AlchemyAPI.AlchemyAPI()

错误消息Syntax Error near unexpected token ('是bash错误,不是Python错误。您似乎是在bash shell中而不是Python中键入此代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM