小编Bry*_*key的帖子

是否可以通过VS2010编写和测试iPhone应用程序?

| Windows 7旗舰版| Visual Studio 2010 Professional | - 是否可以通过Visual Studio 2010编写和测试iPhone/iPod touch应用程序?如果是这样,是否有模板可以这样做?谢谢!

iphone visual-studio-2010 ipod-touch windows-7

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

在没有扩展名的情况下在Python中读取文件

我想在Python 2.6中读取一个没有扩展名的(基本上是文本文件)文件.我尝试了以下代码,但有以下错误..

for infile in glob.glob(os.path.join(path + "Bookmarks",'*')):
    review_file = open(infile,'r').read()
    print review_file
Run Code Online (Sandbox Code Playgroud)

- >未定义全局名称glob

f = open(path, "r")
text = f.readlines()
print text
Run Code Online (Sandbox Code Playgroud)

- >打印"x00\x00\x00\x00\x00 \"等,这不是此文件中的内容.

编辑: - >文件的直接,直接,是我想要的,例如,如果文件中有"023492034blackriver0brydonmccluskey",它会(截至目前)用一堆二进制值提取它,而我只想要exacy内容.我该怎么办?

python

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