CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
jackfrued

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: jackfrued/Python-100-Days
Path: blob/master/公开课/文档/第06次公开课-算法入门系列2-在水一方/code/example05.py
Views: 729
1
size = 25
2
3
for i in range(size):
4
for j in range(size):
5
if i % 2 == 1 or j % 2 == 1:
6
print('■', end='')
7
else:
8
print('□', end='')
9
print()
10
11
12