"google.golang.org/appengine/log"を使う
golangの標準のlogではなく。...
2018/09/30
dev_appserver.py where
google-cloud-sdk/bin/dev-appserver...
2018/09/29
windows cmd tools
Cmder
https://conemu.github....
go project .ignore
.DS_Store*.[56789ao]*.a[56789o]*.so*.pyc._*.nfs.*[56789a].out*~*.orig*.rej*.exe.*.swpcore*.cgo*.go*.cgo*.c_cgo_*_obj_test_testmain.go/VERSION.cache/bin//build.out/doc/articles/wiki/*.bin/goinstall.log/last-change/misc/cgo/life/run.out/misc/cgo/stdio/run.out/misc/cgo/testso/main/pkg//src/*.*//src/cmd/cgo/zdefaultcc.go/src/cmd/dist/dist/src/cmd/go/internal/cfg/zdefaultcc.go/src/cmd/go/internal/cfg/zosarch.go/src/cmd/internal/objabi/zbootstrap.go/src/go/build/zcgo.go/src/go/doc/headscan/src/runtime/internal/sys/zversion.go/src/unicode/maketables/test.out/test/garbage/*.out/test/pass.out/test/run.out/test/times.out#...
2018/09/25
Python class method return None
cat = Cat()
print(cat.sound())
-->
--miao--
None
が出力される。class's method will return None defaultly,that means method executed successfully!
詳しく↓
On the actual behavior, there is no difference. They all return None and that's it. However, there is a time and place for all of these. The following instructions are basically how the different methods should be used (or at least how I was taught they should be used), but they are not absolute rules so you can mix them up if you feel necessary to.
Using return None
This tells that...
2018/09/24
Great! get source code in Python
Google BloggerのPythonLibを使って、Bloggerを操作したいですが、Docはどこにもない。。Great! get source code in Python
http = credentials.authorize(http = httplib2.Http())
service = build('blogger','v3',http=http)
posts = service.posts()
#for x in inspect.getmembers(posts,inspect.ismethod or inspect.isfunction):
# print(x)
print(inspect.getsource(posts.update)...
Difference between Method and Function in Python
Python Method
Method is called by its name, but it is associated to an object (dependent).
A method is implicitly passed the object on which it is invoked.
It may or may not return any data.
A method can operate on the data (instance variables) that is contained by the corresponding class
Functions
Function is block of code that is also called by its name. (independent)
The function can have different parameters or may not have any at all. If any data (parameters) are passed, they are passed explicitly.
It may or may not return...