摘要:
strings=['xxaa','xuo','fwefxxx','woeuxxfei'] print(strings) #替换方法1 for string in strings: if 'xx' in string: index=strings.index(string) strings[index]='00' print(strings) strings... 阅读全文
posted @ 2016-06-26 14:42
*飞飞*
阅读(204)
评论(0)
推荐(0)
摘要:
def hello(): print('hello world') if __name__=='__main__': hello() print("__name__=",__name__,'\n') ''' name=input("what's your name?\n") print("hello, "+name+"!") input("") ''' 阅读全文
posted @ 2016-06-26 14:41
*飞飞*
阅读(178)
评论(0)
推荐(0)

浙公网安备 33010602011771号