如何停止MS Access以更改我的SQL代码???
我已经编写了自己的SQL查询,现在MS Access弄得一团糟,只是为了显示它"图形化".我不想要那个!怎么阻止它?
我有两台带有Windows的计算机,我刚刚在其中一台计算机上发现,如果我直接运行python代码,例如:
test_args.py input1 input2
Run Code Online (Sandbox Code Playgroud)
Python不会识别我给出的输入,但这有效:
python test_args.py input1 input2
Run Code Online (Sandbox Code Playgroud)
我试过这段代码:
import sys
print 'Number of arguments:', len(sys.argv), 'arguments.'
print 'Argument List:', str(sys.argv)
Run Code Online (Sandbox Code Playgroud)
第一种方式(test_args.py)返回:
Number of arguments: 1 arguments.
Argument List: ['D:\\Test\\args\\test_args.py']
Run Code Online (Sandbox Code Playgroud)
虽然sceond方式(python test_args.py input1 input2)返回:
Number of arguments: 3 arguments.
Argument List: ['D:\\Test\\args\\test_args.py', 'input1', 'input2']
Run Code Online (Sandbox Code Playgroud)
关于这可能发生什么的任何想法?此问题仅发生在我的一台计算机上,两台都有相同版本的Windows.
谢谢!
我在regedit关键字"python"中搜索,发现在"C:\ Python27\python.exe""%1"之后缺少%*的两个键:
电脑\ HKEY_CLASSES_ROOT \应用程序\ python.exe
电脑\ HKEY_CLASSES_ROOT\py_auto_file \壳\开放\命令
并且.py与py_auto_file相关联,即使我尝试了关联.py Python.File
更改两个键解决了这个问题,谢谢!
我有以下多索引数据框:
from io import StringIO
import pandas as pd
datastring = StringIO("""File,no,runtime,value1,value2
A,0, 0,12,34
A,0, 1,13,34
A,0, 2,23,34
A,1, 6,23,38
A,1, 7,22,38
B,0,17,15,35
B,0,18,17,35
C,0,34,23,32
C,0,35,21,32
""")
df = pd.read_csv(datastring, sep=',')
df.set_index(['File','no',df.index], inplace=True)
>> df
runtime value1 value2
File no
A 0 0 0 12 34
1 1 13 34
2 2 23 34
1 3 6 23 38
4 7 22 38
B 0 5 17 15 35
6 18 17 35
C 0 7 34 23 32
8 …
Run Code Online (Sandbox Code Playgroud)