delphiforpython
Ⅰ delphi的for語句
var
x,i :Integer;
ss :string;
begin
ss := '';
x := StrToInt(Edit1.Text);
for i := 1 to x do
begin
if ss = '' then
begin
if i=strtoint(Edit2.Text) then ss:='name'
else ss := '1';
end
else
begin
if i=strtoint(Edit2.Text) then ss := ss+',name'
else ss :=ss + ','+inttostr(i);
end;
end;
Edit1.Text :=ss;
end;
Ⅱ 請問在delphi中怎麼調用python已經寫好的py程序
WinExec(Pchar('C:\Python27\python aaaa.py'),sw_ShowNormal);
Ⅲ python和delphi哪個容易學
從語言的發展來看,delphi所使用的pacal已經基本被時代淘汰了!python的語法,資料更豐富一些,建議學!
Ⅳ delphi 的for循環 如何寫
for i:=1 to 5 do
begin
...........
for j:=1 to 8 do
begin
...........
end;
............
end;
Ⅳ delphi和python的關系
Delphi是以Pascal語言為基礎的基於對象的GUI程序快速開發環境,類似的比如VB。
Python是一種解釋性腳步語言,雖然也可以開發GUI程序,但主打不在哪方面,屬於通用型的。
Ⅵ python for delphi 有人用這個配合開發的么
我沒有用。
Python應用場合足夠簡單的任務,例如一些shell編程.如果你喜歡用Python設計大型商業網站或者設計復雜的游戲,悉聽尊便.