如何修复此错误?
代码:
import pandas as pd
import seaborn as sns
api_key = 'API_KEY'
channel_id = 'CHANNEL_ID'
youtube = build('youtube','v3', developerKey=api_key)
def get_channel_stats (youtube, channel_id):
request = youtube.channels().list(
part= 'snippet','contentDetails','statistics',id=channel_id)
response = request.execute()
return response
错误消息:
SyntaxError: positional argument follows keyword argument
如何避免这个错误?我在某个地方犯了一个愚蠢的错误,但不知道如何修复它.