pythonʵÏÖ×Ô¶¯µÇ¼µÄÎÊÌâ
Ïëͨ¹ýpython postÀ´ÊµÏÖ×Ô¶¯µÇ¼ÐÂÀËΧ²±ÒÑ»ñµÃµÇ¼ºóÒ³ÃæµÄÔ´Âë
µ«ÊÇ×ÐϸµÄ¿´ÁËϵÇÂ¼Ò³ÃæµÄÔ´Âë
HTML code:
<body style=" background:#C4EFF4 url(http://simg.sinajs.cn/miniblog/images/common/login/zlogin3.jpg) no-repeat center 461px">
<div class="loginWarp">
<div class="warpB1"></div>
<div class="warpC">
<div class="loginMain">
<div class="loginMain2" id="login_form">
<table class="regTab"><tr><th>»¹Ã»ÓÐÐÂÀË΢²©Õ˺ţ¿</th><td class="regBg"><a href="http://t.sina.com.cn/reg.php">Á¢¼´×¢²á</a></td>
</tr></table>
<table class="loginTable">
<tr>
<th> </th>
<td class="yzm" id="errortip" style="color:red"></td>
</tr>
<tr>
<th>µÇ¼Ãû£º</th>
<td><div class="input_login"><input type="text" id="loginname" name="loginname" value="" tabindex="1" /></div></td>
</tr>
<tr>
<th>ÃÜÂ룺</th>
<td><div class
Ïà¹ØÎÊ´ð£º
ÓźñµÄ¸å³ê£¬³ÏÕÐPython¼¼ÊõÈËÔ±²ÎÓë¸÷ÖÖ¼¼ÊõÊé¼®³ö°æ¡£
ͨ¹ý¸ÃÊé¼®£¬×÷Õß¿ÉÒԵõ½Èçϱ¨³ê£º
1¡¢·áºñµÄ¸å³ê¡£
2¡¢Êé¼®Öø×÷µÄÊðÃûȨ¡£
3¡¢¶Ô×÷ÕߺÍÊé½øÐÐÐû´«£¬Ìá¸ß×÷ÕßÔÚ¼¼ÊõȦ×ÓÀ ......
ÎÒÏÖÔÚÓÐÒ»¸öÐèÇóÊÇÕâÑùµÄ
ÎÒÓÐ2¸öÀà
class A
{
public:
int val;
}
class B
{
public:
A a
}
ÏÖÔÚÔڽű¾ÖÐÖ»ÄÜ
b.a.val = 1
ÎÒÔÚpythonÖÐÏëʹÓÃ
b.a = 1
......
rt
Õâ¸öÔõôʵÏÖ£¬Ð»Ð»£¡
±ÈÈ磬ÎÒ·¢ÏÖij¸öÍøÕ¾ºÜºÃÍæ¡£ÎÒÏëÓÃpythonд¸ö³ÌÐò×¢²áµ½Õâ¸öÍøÕ¾ÉÏ¡£ÔõôʵÏÖ£¿
up¼ÌÐøµÈ»Ø¸´
ÒýÓÃ
¶Ô·½¿ÉÄÜÓз´auto»úÖÆ£¬±ÈÈçʶ±ðÂëµÈ¡£ËùÒÔÄãµÄ¹¤³ÌÁ¿¾Í´óÁË¡£
......
>>> x=-1
>>> if x>0:
print ('11')
>>> else:
SyntaxError: invalid syntax (<pyshell#20>, line 1)
ÍøÉÏËѵÄÒ²ÊÇ£º
>>> x=int(input("Please ent ......