สร้าง Python List
ตัวอย่าง
C:\Py3Project> howdoi create a python list
ผลลัพธ์
การรันโค้ดข้างต้นจะได้ผลลัพธ์ดังนี้:
>>> l = [None] * 10 >>> l [None, None, None, None, None, None, None, None, None, None]
พิมพ์วันที่วันนี้ (Printing Today's Date)
ตัวอย่าง
c:\python3> howdoi print today's date in python
ผลลัพธ์
การรันโค้ดข้างต้นจะได้ผลลัพธ์ดังนี้:
for date in mylist:
print str(date)
ตัวอย่าง
c:\python3> howdoi create fibonacci series in python
ผลลัพธ์
การรันโค้ดข้างต้นจะได้ผลลัพธ์ดังนี้:
def F(n):
if n == 0: return 0
elif n == 1: return 1
else: return F(n-1) + F(n-2)
ตัวอย่าง
c:\python3> howdoi use calendar in javascript
ผลลัพธ์
การรันโค้ดข้างต้นจะได้ผลลัพธ์ดังนี้:
You can choose from Material UI. https://www.material-ui.com/#/components/date-picker https://www.material-ui.com/#/components/time-picker
ตัวอย่าง
c:\python3> howdoi go to north pole
ผลลัพธ์
การรันโค้ดข้างต้นจะได้ผลลัพธ์ดังนี้:
I believe the difference is because GPS uses the geographical North/South Pole rather than the magnetic ones. The further north you are, the bigger the difference is to where you are. The GPS satellite positions need to be absolute, and using a fluctuating point of reference like the magnetic poles is a big no-no.