日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程语言 > python >内容正文

python

玩玩IronPython

發布時間:2025/3/15 python 27 豆豆
生活随笔 收集整理的這篇文章主要介紹了 玩玩IronPython 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

感覺比POWERSHELL強多了,爽多了。也自然多了。。。。

C#,JAVA, PYTHON, C ,匯編,我都要了解一下呀。

現在感覺C++介入較少,可能我還沒有想到結合職業的應用吧。

空閑的時候,作為一個興趣,也要進去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 # 添加個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())

準備結合VS2012學習一下。

IndentationError: unindent does not match any outer indentation level

這是縮進錯誤,收藏。

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

這是編碼錯誤,用定義CODING編碼方式解決:

#!/usr/bin/python
# -*- coding: utf-8 -*-

收錄。。。。

?

轉載于:https://www.cnblogs.com/aguncn/archive/2013/05/02/3054457.html

總結

以上是生活随笔為你收集整理的玩玩IronPython的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。