senooken JP Social
  • FAQ
  • Login
senooken JP Socialはsenookenの専用分散SNSです。
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. 網上虛擬交心不宜 (sharow@qiitadon.com)'s status on Saturday, 14-Jul-2018 11:27:11 JST 網上虛擬交心不宜 網上虛擬交心不宜

    import calendar
    from itertools import product

    def is_jason_spawn(year, month):
    for week in calendar.monthcalendar(year, month):
    if 13 in week and week.index(13) == 4:
    return True
    return False

    for year,month in product(range(2018, 2050), range(1, 12)):
    if is_jason_spawn(year, month):
    print(year, month)

    どうやらほぼ毎年一度は来てくれるようだ。少なくとも2049年までは。

    In conversation Saturday, 14-Jul-2018 11:27:11 JST from qiitadon.com permalink

    Feeds

    • Activity Streams
    • RSS 2.0
    • Atom
    • Help
    • About
    • FAQ
    • TOS
    • Privacy
    • Source
    • Version
    • Contact

    senooken JP Social is a social network, courtesy of senooken. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.

    Creative Commons Attribution 3.0 All senooken JP Social content and data are available under the Creative Commons Attribution 3.0 license.