小编Pav*_*van的帖子

Python 3.5 中的注释给出了 unicode 错误

我正在使用 Spyder IDE,Python 3.5,它是 anaconda 发行版的一部分。下面给出了代码的前几行:

# -*- coding: utf-8 -*-
"""
Created on Tue Sep 20 16:22:40 2016

@author: pavan
This program reads csv file from the given directory .
The input directory for this is : "C:\Users\pavan\Documents\Python Scripts\EOD from Yahoo"
The output file is "comprehensive_trend.xlsx"

"""
import pdb
import pandas as pd
from datetime import date, datetime, timedelta
import os, glob
# Delarations
full_path = os.path.realpath(__file__)
current_directory = os.path.dirname(full_path)
directory = current_directory + "\\EOD from Yahoo\\"
#directory = …
Run Code Online (Sandbox Code Playgroud)

unicode python-2.7 python-3.5

5
推荐指数
1
解决办法
2061
查看次数

标签 统计

python-2.7 ×1

python-3.5 ×1

unicode ×1