玩玩IronPython
感覺比POWERSHELL強(qiáng)多了,爽多了。也自然多了。。。。
C#,JAVA, PYTHON, C ,匯編,我都要了解一下呀。
現(xiàn)在感覺C++介入較少,可能我還沒有想到結(jié)合職業(yè)的應(yīng)用吧。
空閑的時(shí)候,作為一個(gè)興趣,也要進(jìn)去C++去看一下的。。
前年購了陳良喬的書的,但看著沒啥感覺。。
1 #!/usr/bin/python 2 # -*- coding: utf-8 -*- 3 4 5 import clr 6 clr.AddReference("System.Windows.Forms") 7 clr.AddReference("System.Data") 8 clr.AddReferenceByPartialName("System.Drawing") 9 10 from System.Collections import * 11 from System.Windows.Forms import * 12 from System import * 13 from System.Drawing import * 14 15 16 class HelloWord(Form): 17 def __init__(Word): 18 Word.Text='hello' 19 Word.ClientSize=Size(600,455) 20 # 添加個(gè)button 21 myButton =Button() 22 myButton.Text="say Hellon" 23 myButton.Location =Point(12,136) 24 myButton.Click += Word.myButton_Click 25 Word.Controls.Add(myButton) 26 27 28 29 30 # 定義事件 31 def myButton_Click(Word, *args): 32 MessageBox.Show("hello word","welcome") 33 34 35 Application.Run(HelloWord())準(zhǔn)備結(jié)合VS2012學(xué)習(xí)一下。
IndentationError: unindent does not match any outer indentation level
這是縮進(jìn)錯(cuò)誤,收藏。
SyntaxError: Non-ASCII character '\xcc' in file c:\ipython\myFistPython.py on line 18, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
這是編碼錯(cuò)誤,用定義CODING編碼方式解決:
#!/usr/bin/python
# -*- coding: utf-8 -*-
收錄。。。。
?
轉(zhuǎn)載于:https://www.cnblogs.com/aguncn/archive/2013/05/02/3054457.html
總結(jié)
以上是生活随笔為你收集整理的玩玩IronPython的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 32位CPU的机器只能支持4GB的内存吗
- 下一篇: 云开发听说过没? Compilr 屌爆的