摘要:
原文来自网络,侵权删if both values of in a or expression are true ,Python will select the first one, and the second one in the and expression. for example:resul... 阅读全文
摘要:
1、可以通过try...except语句来简单的判断字符串是否为整数值,如例程x = raw_input('>')try: print int(x)except ValueError: return None2、append函数也可以用来添加tuple,如下x = ('1','2')y= []y.a... 阅读全文