python

1.追加
body = {“name”: ‘山田太郎’, ‘sex’: ‘female’, ‘age’: ...

python

サンプル
for line in open(‘changfa.csv’, ‘r’):
list = line.split(‘,’)
pri ...

python

サンプル
cft= None
if cft is None:
print ” data is null”

python

1.sorted()
>>> l =
>>> l1 = sorted(l, key=lambda d:d, reverse=True)
>>> l1

python

サンプルコード:
#!/usr/bin/python3

str = “welcome to www.arkgame.com”
print (“old homepage:& ...

python

pythonコード
# -*- coding: utf-8 -*-
def writeFileFunc(infile,outfile):

infopen = open(infile,’rR ...

python

# vim op_log_file.py
#!/usr/bin/env python
#-*- coding: utf-8 -*-

import os,time

def opLogFun(log ...

python

pythonコード
f = open(“demo.txt”)
line = f.readline()
while line:
print line,
# print(li ...

python

pythonコード
class A(object):

def __method(self):
print(“Input a method in class A”)

def ...

python

サンプルコード
#!/usr/bin/python

str = u”this2009″;
print str.isnumeric();

str = u”234 ...