Python£ºÇë½ÌTkÖÐradiobutton¿Ø¼þµÄÁ½¸öÊôÐÔ×÷ÓÃ
ÇëÏÈ¿´ÏÂÃæµÄ¼òµ¥´úÂ룺
Python code:
from tkinter import *
root = Tk()
v = IntVar()
v.set(0)
for i in range(3):
Radiobutton(root,
variable = v,
value = i).pack()
root.mainloop()
ÎÊÌ⣺
1¡¢Radiobutton¿Õ¼äÖеÄvariableÊôÐÔºÍvalueÊôÐÔ·Ö±ðÆðµ½Ê²Ã´×÷Óã¿
2¡¢variableΪʲô¸³ÖµÎªv£¬È»ºó¸øv¸³ÖµÎª0£¬¿ÉÒÔÕý³£¹¤×÷£¬µ«ÊÇÈç¹ûÖ±½Ó¸øvariable¸³ÖµÎª0£¬¾Í²»ÐÐÁËÄØ£¿
лл£¡
value Ö¸¶¨µÄÊÇ RadioButton ¹ØÁªµÄÖµ
Python code:
Command-Line Name: -value
Database Name: value
Database Class: Value
Specifies value to store in the button's associated variable whenever
this button is selected.
variable Ö¸¶¨µÄÊÇ RadioButton Ñ¡ÖÐʱÉèÖõıäÁ¿Ãû£¬Õâ¸ö±ØÐëÊÇÈ«¾ÖµÄ±äÁ¿Ãû£¬Óà 0 ¿Ï¶¨ÊDz»ÐеÄ
Python code:
Command-Line Name: -variable
Database Name: variable
Database Class: Variable
Specifies name of global variable to set whenever this button is selected.
Changes in this variable also cause the button to select or deselect itself.
Defaults to the value selectedButton.
ллÄãµÄÖ¸½Ì£¬²»
Ïà¹ØÎÊ´ð£º
Ïñ C µÄ scanf() ÄÇÑù
±ÈÈç¶ÁÈë 1 2 3 a b c
ÿ´Î¶ÁÈëÒ»¸ö
ÏÂÃæÕâ¸öÓ¦¸ÃÊÇÄãÏëÒªµÄ°É£º
Python code:
>>> k = raw_input()
0 0123 ds dsl sd
>>> k
'0 0123 ds dsl sd'
>>> ......
ËÍÆ¼öÒ»±¾Ñ§Ï°PYTHONµÄÊ飬лл
¡¶python¼òÃ÷½Ì³Ì¡·£¬¡¶pythonºËÐıà³Ì¡·
×÷Ϊϵͳ¹ÜÀí·½Ãæ£¬¡¶Python UNIXºÍLinuxϵͳ¹ÜÀíÖ¸ÄÏ¡·ÊDZ¾·Ç³£²»´íµÄÊé¡£
http://club.book.csdn.net/pic3/255142.jpg
ÒýÓÃ
×÷Î ......
C#ÀïÃæÓÃusing System.Security.Cryptography; RSACryptoServiceProvider¼ÓÃܹýµÄÏûÏ¢
ÓÃPython CryptoÖÐRSAµÄ·½·¨ ÄÜÖ±½Ó ½âÂð£¿
RSA¼ÓÃÜ·½Ê½²»ÊÇͳһµÄÂð£¿ÐèҪעÒâЩʲô£¿
ÓаïÖú¡£µ«ÊÇû½â¾öÎÊÌâ¡£¡£¡£
......
Òì³£´úÂëÈçÏ£º
write a file error: [Errno 2] No such file or directory: 'C:\x0cile.txt'
Traceback (most recent call last):
File "C:\Documents and Settings\USER\×ÀÃæ\¸´ ......
RowNum=18
ColumnNum=10
SquareList=[[0 for a in range(ColumnNum)] for b in range(RowNum)]
ActiveList=[[0 for a in range(ColumnNum)] for b in range(RowNum)]
ActiveList[0][5]=1
SquareL ......