我有一个Access数据库应用程序,我想知道反编译和重新编译它的正确方法.
CREATE TABLE `batchinfo` (
`rowid` int(11) NOT NULL AUTO_INCREMENT,
`datapath` mediumtext,
`analysistime` varchar(50) DEFAULT NULL,
`reporttime` varchar(50) DEFAULT NULL,
`lastcalib` varchar(50) DEFAULT NULL,
`analystname` varchar(150) DEFAULT NULL,
`reportname` varchar(150) DEFAULT NULL,
`batchstate` varchar(150) DEFAULT NULL,
`instrument` varchar(20) DEFAULT NULL,
PRIMARY KEY (`rowid`),
UNIQUE KEY `rowid_UNIQUE` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=15034 DEFAULT CHARSET=latin1
Run Code Online (Sandbox Code Playgroud)
我想从20000开始自动增量
我怎么做?我可以编辑表格如何从20000开始递增?
我正在编写简单的Windows应用程序.我不需要DB支持.为什么我会使用WPF而不是WinForms?
我有一本字典,我想附加到每种药物,一个数字列表.像这样:
append(0), append(1234), append(123), etc.
def make_drug_dictionary(data):
drug_dictionary={'MORPHINE':[],
'OXYCODONE':[],
'OXYMORPHONE':[],
'METHADONE':[],
'BUPRENORPHINE':[],
'HYDROMORPHONE':[],
'CODEINE':[],
'HYDROCODONE':[]}
prev = None
for row in data:
if prev is None or prev==row[11]:
drug_dictionary.append[row[11][]
return drug_dictionary
Run Code Online (Sandbox Code Playgroud)
我后来希望能够访问例如的entirr条目集'MORPHINE'.
import csv
with open('test.csv', 'rb') as f:
data = list(csv.reader(f))
import collections
counter = collections.defaultdict(int)
for row in data:
counter[row[1]] += 1
for row in data:
if counter[row[1]] >= 4:
writer = csv.writer(open("test1.csv", "wb"))
writer.writerows(row)
Run Code Online (Sandbox Code Playgroud)
我的输出很奇怪!这段代码有什么问题?
例如,我可以这样做:
split = temp_string.Split("<beginning of record>")
Run Code Online (Sandbox Code Playgroud)
那些你推荐的:
split = Regex.Split(temp_string, "< beginning of record >")
Run Code Online (Sandbox Code Playgroud)
它不起作用.它刚刚返回第一个字符"<"
以及那些推荐的人:
Dim myDelims As String() = New String(){"< beginning of record >"}
split = temp_string.Split(myDelims, StringSplitOptions.None)
Run Code Online (Sandbox Code Playgroud)
这也不起作用.它也只返回第一个字符
自从开始使用JetBrains Annotations以来,为了我自己的利益,我用[CanBeNull]或装饰了所有方法[NotNull]
例如,以下行:
public AccountController(IAccountService accountService)
Run Code Online (Sandbox Code Playgroud)
将改为:
public AccountController([CanBeNull] IAccountService accountService)
Run Code Online (Sandbox Code Playgroud)
另一个例子是:
public Account CreateAccountEntity(Account accountEnttity)
Run Code Online (Sandbox Code Playgroud)
将改为:
[CanBeNull]
public Account CreateAccountEntity([NotNull] Account accountEnttity)
Run Code Online (Sandbox Code Playgroud)
如何绕过注释的挂起更改,特别是"[CanBeNull]",并让TFS完全忽略此更改?
我有一个字符串:
a = "1;2;3;"
Run Code Online (Sandbox Code Playgroud)
我想split这样:
foreach (string b in a.split(';'))
Run Code Online (Sandbox Code Playgroud)
我怎样才能确保我只返回1,2,3而不是一个"空字符串"?
如果我分裂1;2;3然后我会得到我想要的.但如果我分裂1;2;3;然后我得到一个额外的'空字符串'.我已经采取了建议并做到了这一点:
string[] batchstring = batch_idTextBox.Text.Split(';', StringSplitOptions.RemoveEmptyEntries);
Run Code Online (Sandbox Code Playgroud)
但是,我收到这些错误:
错误1'string.Split(params char [])'的最佳重载方法匹配包含一些无效参数C:\ Documents and Settings\agordon\My Documents\Visual Studio 2008\Projects\lomdb\EnterData\DataEntry\DAL.cs 18 36 EnterData
错误2参数'2':无法从'System.StringSplitOptions'转换为'char'C:\ Documents and Settings\agordon\My Documents\Visual Studio 2008\Projects\lomdb\EnterData\DataEntry\DAL.cs 18 68 EnterData
c# ×3
.net ×2
python ×2
access-vba ×1
collections ×1
csv ×1
decompiler ×1
dictionary ×1
maintenance ×1
ms-access ×1
mysql ×1
split ×1
sql ×1
string ×1
tfs ×1
vb.net ×1
vba ×1
winforms ×1
wpf ×1